Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a1705 commit fe41c16Copy full SHA for fe41c16
test/jasmine/tests/click_test.js
@@ -728,5 +728,20 @@ describe('Test click interactions:', function() {
728
done();
729
});
730
731
+
732
733
+ it('should move the plot when panning', function() {
734
+ var start = 100,
735
+ end = 300,
736
+ plot = gd._fullLayout._plots.xy.plot;
737
738
+ mouseEvent('mousemove', start, start);
739
+ mouseEvent('mousedown', start, start);
740
+ mouseEvent('mousemove', end, end);
741
742
+ expect(plot.attr('transform')).toBe('translate(250, 280)');
743
744
+ mouseEvent('mouseup', end, end);
745
+ });
746
747
0 commit comments