Horizontal scrolling (via trackpads) possible for diagram control?

Hello Syncfusion Team,

I was wondering if it is possible to scroll a diagram control horizontally (using a trackpad)? Something like this: https://user-images.githubusercontent.com/2327905/83954396-7453c900-a866-11ea-9868-0bf4e8ffa934.gif

I was looking at the command manager. However it only allows key modifier and doesn't recognize inputs from mouse/trackpads etc.

Thanks,
-Mithun



1 Reply 1 reply marked as answer

AR Aravind Ravi Syncfusion Team June 9, 2020 12:04 PM UTC

Hi Mithun, 

We have created a sample to show scroll bars in the diagram. Set the diagram height and width less than view port width. Now set the page settings for the diagram with width and height as greater than view port height and width. So that diagram visible with horizontal and vertical scroll bars.  

public pageSettings: PageSettingsModel = { width: 1500, height: 1500}; 
 
<ejs-diagram #diagram id="diagram" width="500px" height="500px" [snapSettings]='snapSettings' [pageSettings]="pageSettings" > 
            </ejs-diagram> 
 

Regards 
Aravind Ravi 


Marked as answer
Loader.
Up arrow icon