Auto-scroll as we move an element offscreen #1773
-
When moving an element (node) offscreen, the dragging will stop the point we become not able to move any further off the canvas. This will require some efforts but wand to see if there are already some APIs or examples to look into first. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If trying to implement it yourself in JointJS, you could take advantage of If using JointJS+, the PaperScroller plugin has an There is also a |
Beta Was this translation helpful? Give feedback.
If trying to implement it yourself in JointJS, you could take advantage of
paper.fitToContent()
.https://resources.jointjs.com/docs/jointjs/v3.5/joint.html#dia.Paper.prototype.fitToContent
If using JointJS+, the PaperScroller plugin has an
autoResizePaper
option.https://resources.jointjs.com/docs/rappid/v3.5/ui.PaperScroller.html
There is also a
scrollWhileDragging
option that can be used along withautoResizePaper
in the PaperScroller.