mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Adjust timeline zoom sensitivity on Firefox (#2777)
* Adjust Firefox zoom sensitivity. * Animate zooming to make it appear smoother (especially on Firefox). * Debounced zoom tracking. * Addressed the comments.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
|
||||
// See https://github.com/d3/d3-zoom/blob/807f02c7a5fe496fbd08cc3417b62905a8ce95fa/src/zoom.js
|
||||
export function defaultWheelDelta(ev) {
|
||||
return ev.deltaY * (ev.deltaMode ? 120 : 1) * 0.002;
|
||||
}
|
||||
Reference in New Issue
Block a user