Panning paper through a cell behaves erratically when scrollWhileDragging is enabled

23 views
Skip to first unread message

Frank

unread,
Oct 4, 2021, 6:04:08 PM10/4/21
to JointJS
Hi there,

I am trying to pan the paper(scroller) through a cell. A dumbed-down version would simply look like this:
interactive: false // on the paper

'cell:pointerdown': function(elementView, evt, x, y) {
   this.paperScroller.startPanning(evt);
} // added to paper

This would work fine but I have scrollWhileDragging enabled on the paperScroller. When this setting is true, I cannot approach the edges of the paper scroller while panning through an element because the paper scroller thinks I am dragging a shape (or that's what I think) and tries to scroll the paper. See the attached video for the top border test.
pan.gif

Is there a way to disable scrollWhileDragging when/while I am panning the paper? Or any other solution?
Thanks a lot!
F.
Reply all
Reply to author
Forward
0 new messages