Use a laser pointer rather than the trackpad to control web content.

This commit is contained in:
Alan Jeffrey 2018-11-14 10:53:07 -06:00
parent b8281b4374
commit deb599f5ee
9 changed files with 180 additions and 106 deletions

View file

@ -190,7 +190,7 @@ pub unsafe extern "C" fn heartbeat_servo(servo: *mut ServoInstance) {
// How far does the cursor have to move for it to count as a drag rather than a click?
// (In device pixels squared, to avoid taking a sqrt when calculating move distance.)
const DRAG_CUTOFF_SQUARED: f32 = 100.0;
const DRAG_CUTOFF_SQUARED: f32 = 900.0;
// How much should we scale scrolling by?
const SCROLL_SCALE: f32 = 3.0;