mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Use a laser pointer rather than the trackpad to control web content.
This commit is contained in:
parent
b8281b4374
commit
deb599f5ee
9 changed files with 180 additions and 106 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue