aammfe
Topic Author
Posts: 3
Joined: 12 Oct 2016, 15:09

Touch Scrolling With mouse

15 Oct 2016, 20:30

Hi !
Is there a way to have scrolling like touch with mouse..?
 
User avatar
sfernandez
Site Admin
Posts: 1915
Joined: 22 Dec 2011, 19:20

Re: Touch Scrolling With mouse

19 Oct 2016, 01:59

Hi,

Are you using C++ SDK or Unity package?

In Unity you can select the NoesisGUIPanel component and click on 'Emulate Touch' to convert mouse clicks to touch events. Is this what you want?

If that is not your case, and you need to customize the scroll using the mouse, you will have to modify ScrollViewer offset manually by calling:
/// Scrolls the content within the ScrollViewer to the specified horizontal offset position.
void ScrollToHorizontalOffset(NsFloat32 offset);

/// Scrolls the content within the ScrollViewer to the specified vertical offset position.
void ScrollToVerticalOffset(NsFloat32 offset); 

Who is online

Users browsing this forum: Google [Bot] and 1 guest