Skip to content

Auto-scroll as we move an element offscreen #1773

Discussion options

You must be logged in to vote

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 with autoResizePaper in the PaperScroller.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@seekeramento
Comment options

@jamesgeorgewilliams
Comment options

@seekeramento
Comment options

Answer selected by kumilingus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants