ScrollViewer Panning
Hello,
I'm having trouble enabling panning using a ScrollViewer
I've set up my ScrollViewer with PanningMode="VerticalOnly" and set Focusable to True. While the vertical scroll bar works fine, I can't drag to scroll (panning) the content to scroll the view.
I'm having trouble enabling panning using a ScrollViewer
I've set up my ScrollViewer with PanningMode="VerticalOnly" and set Focusable to True. While the vertical scroll bar works fine, I can't drag to scroll (panning) the content to scroll the view.
-
sfernandez
Site Admin
- Posts: 3112
- Joined:
Re: ScrollViewer Panning
Hi, panning only works with manipulation events, so only if touch input is injected into the View.
You can also test it by emulating touch events with the mouse by calling
Code: Select all
/// Notifies that a finger touched the screen. Origin is in the upper-left corner.
/// Returns true if event was handled
virtual bool TouchDown(int x, int y, uint64_t id) = 0;
/// Notifies that a finger moved on the screen. Origin is in the upper-left corner.
/// Returns true if event was handled
virtual bool TouchMove(int x, int y, uint64_t id) = 0;
/// Notifies that a finger raised off of the screen. Origin is in the upper-left corner.
/// Returns true if event was handled
virtual bool TouchUp(int x, int y, uint64_t id) = 0;
Code: Select all
/// Indicates if touch input events are emulated by the mouse
virtual void SetEmulateTouch(bool emulate) = 0;
Re: ScrollViewer Panning
Setting Emulate Touch to true in the NoesisInstance did it, but MouseOver Effects are not called anymore, should i open a ticket?Hi, panning only works with manipulation events, so only if touch input is injected into the View.You can also test it by emulating touch events with the mouse by callingCode: Select all/// Notifies that a finger touched the screen. Origin is in the upper-left corner. /// Returns true if event was handled virtual bool TouchDown(int x, int y, uint64_t id) = 0; /// Notifies that a finger moved on the screen. Origin is in the upper-left corner. /// Returns true if event was handled virtual bool TouchMove(int x, int y, uint64_t id) = 0; /// Notifies that a finger raised off of the screen. Origin is in the upper-left corner. /// Returns true if event was handled virtual bool TouchUp(int x, int y, uint64_t id) = 0;
Code: Select all/// Indicates if touch input events are emulated by the mouse virtual void SetEmulateTouch(bool emulate) = 0;
Re: ScrollViewer Panning
Mouse events do not support acceleration by design. Additionally, touch input does not have the concept of "focus".
The "Emulate Touch" feature is intended for testing mobile interactions on a desktop development machine.
The "Emulate Touch" feature is intended for testing mobile interactions on a desktop development machine.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests