Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > InteractiveService Class : EnableMouseWheel Property |
When mouse wheel is enabled, the service will fire consecutive DragStarted, DragDelta and DragCompleted events every time the mouse wheel is moved up or down. InteractiveDragDeltaEventArgs.Change will contain the mouse wheel delta value in the Leadtools.LeadPointD.Y value (with Leadtools.LeadPointD.X set to 0.
To check if the event was originated from a mouse wheel, use InteractiveDragStartedEventArgs.IsMouseWheel, InteractiveDragDeltaEventArgs.IsMouseWheel or InteractiveDragCompletedEventArgs.IsMouseWheel.
Each ImageViewerInteractiveMode can control whether it accepts drag events originated using mouse wheel using IsDragMouseWheelEnabled. If the value of this property is false, the events listed above will not be passed to the mode.