MouseWheelDeltaMultiplier Property

Summary

Mouse wheel delta multiplier.

Syntax
TypeScript
JavaScript
Object.defineProperty(InteractiveService.prototype, 'mouseWheelDeltaMultiplier', 
	get: function(), 
	set: function(value) 
) 
mouseWheelDeltaMultiplier: number; 

Property Value

The mouse wheel delta multiplier to use. Must be a value greater than 0. The default value is 1.

Remarks

When scrolling using the mouse wheel, the system (Operating system or browser) sends a native mouse wheel event with a fixed delta value. For instance, this value is 120 in Windows and internet browsers) to scroll the viewer by 120 units (pixels). If this default behavior is not desired, then the value of MouseWheelDeltaMultiplier can be used to increase or decrease the scrolling interval as follows:

JavaScript
// Increase mouse wheel scrolling speed to be twice as fast. In Windows and internat browsers 
// this will scroll by 2 * 120 = 240 pixels with each mouse wheel event. 
imageViewer.interactiveService.mouseWheelDeltaMultiplier = 2.0; 

Or:

JavaScript
// Decrease mouse wheel scrolling speed to be twice as fast. In Windows and internat browsers 
// this will scroll by .5 * 120 = 60 pixels with each mouse wheel event. 
imageViewer.interactiveService.mouseWheelDeltaMultiplier = 0.5; 
Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly