We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Auto scroll of page (to the left and down) on drag of nodes beyond the page border is not working.

Hi ,
Below is the issue and expected output,

Issue: When we drag the node or connector beyond the page border on to the left or to the bottom, page is not getting auto scrolled.
In the documentation preview also the scroll is not working to the left and bottom of the page. 

Expected output: Page should be automatically scrolled on drag of nodes/connectors beyond the page borders.

Please let me know if there is any solution achieve the expected output.
Thanks

3 Replies

SG Shyam G Syncfusion Team September 9, 2019 05:24 AM UTC

Hi Sudhanshu Jain, 

Please use scrollSettings canAutoScroll property to achieve your requirement. Please refer to an code example and sample below. 

Code example
<DiagramComponent 
scrollSettings={{ 
          //autoscroll of a page on drag of nodes beyond the page border/diagram view 
              canAutoScroll: true 
           }} /> 



Regards, 
Shyam G 



SJ Sudhanshu Jain September 9, 2019 06:32 AM UTC

Thanks Shyam,

We are able to achieve auto scroll using the solution you have provided.


SG Shyam G Syncfusion Team September 10, 2019 05:09 AM UTC

Hi Sudhanshu Jain,  
  
Thanks for your update. 
  
Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon