Touch Scrolling With mouse
Hi !
Is there a way to have scrolling like touch with mouse..?
Is there a way to have scrolling like touch with mouse..?
-
-
sfernandez
Site Admin
- Posts: 3264
- Joined:
Re: Touch Scrolling With mouse
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:
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:
Code: Select all
/// 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: Bing [Bot], Semrush [Bot] and 3 guests