LEADTOOLS Support
Imaging
Imaging SDK Questions
ImageViewer with floater - Disable scroll wheel
#1
Posted
:
Thursday, June 25, 2015 8:01:25 AM(UTC)
Groups: Registered
Posts: 4
We have an image viewer implemented with a floater that the user can drag around using ImageViewerFloaterInteractiveMode. We noticed that the scroll wheel is also moving the floater vertically when this mode is engaged. This is a problem because we use the scroll wheel to adjust the scale factor (so the user can zoom in and out). Is there some way to disable the scroll wheel's ability to move the floater? The ImageViewerFloaterInteractiveMode is only set to the left mouse button.
Thank you
#2
Posted
:
Sunday, June 28, 2015 11:32:28 PM(UTC)
Groups: Registered, Tech Support
Posts: 26
Hello,
There's actually a property inside the ImageViewerInteractiveMode Class called IsDragMouseWheelEnabled. This property Indicates whether the ImageViewerInteractiveMode accepts drag events originated using the mouse wheel. By default, the value is set to "true". I would suggest that you try changing that value to "false" and retest, it should work for you. For more information on this property, please view the link below:
https://www.leadtools.co...agmousewheelenabled.htmlEdited by moderator Wednesday, December 30, 2020 9:14:38 AM(UTC)
| Reason: Not specified
Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, June 29, 2015 6:29:30 AM(UTC)
Groups: Registered
Posts: 4
Faris,
This seems to work perfectly. Thank you.
LEADTOOLS Support
Imaging
Imaging SDK Questions
ImageViewer with floater - Disable scroll wheel
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.