Files
Basalt/docs/docs1_6/objects/Basalt/setMouseDragThrottle.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

476 B

Basalt

setMouseDragThrottle

Changes the drag throttle of all drag events. Default value is 50ms - which is 0.05s. Instead of sending all mouse_drag events to the :onDrag handlers basalt sends every 0.05s (while dragging) the most recent drag event to all drag handlers. If you need all drag events - just change the value to 0.

Parameters

  1. number A number in miliseconds.

Usage

local basalt = require("basalt")
basalt.setMouseDragThrottle(0)