hitTestBuffer Property


Hit test buffer.


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

Property Value

The hit test buffer. Default value is 0.


The hit test buffer is used to make the test point "bigger" to compensate for errors and provide smoother hit-testing. For example, if the buffer value is 2, a square with sides 4 pixels long will be used around the test point to perform the hit-testing. This can be very useful when the target element is small in size on a touch device.


Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly