MCPcopy
hub / github.com/plotly/plotly.js / scroll

Function scroll

test/jasmine/tests/gl2d_plot_interact_test.js:681–686  ·  view source on GitHub ↗
(target, amt)

Source from the content-addressed store, hash-verified

679 var relayoutCallback = jasmine.createSpy('relayoutCallback');
680
681 function scroll(target, amt) {
682 return new Promise(function(resolve) {
683 target.dispatchEvent(new WheelEvent('wheel', {deltaY: amt || 1, cancelable: true}));
684 setTimeout(resolve, 0);
685 });
686 }
687
688 function touchDrag(target, start, end) {
689 return new Promise(function(resolve) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…