mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Floor dimension computations (mul/div). (#6264)
* floor most every dimension computations involving MUL or DIV Should avoid passing nonsensical floating point coordinates/dimensions to the UI code. * Update base * https://github.com/koreader/koreader-base/pull/1113 * https://github.com/koreader/koreader-base/pull/1114 * https://github.com/koreader/koreader-base/pull/1115 * Bump android-luajit-launcher https://github.com/koreader/android-luajit-launcher/pull/230 https://github.com/koreader/android-luajit-launcher/pull/231
This commit is contained in:
@@ -489,7 +489,7 @@ function ReaderGesture:addToMainMenu(menu_items)
|
||||
Set double tap interval in milliseconds.
|
||||
The interval value can range from 100 (0.1 seconds) to 2000 (2 seconds).
|
||||
Default value: %1]]), GestureDetector.DOUBLE_TAP_INTERVAL/1000),
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = GestureDetector:getInterval("ges_double_tap_interval")/1000,
|
||||
value_min = 100,
|
||||
value_max = 2000,
|
||||
@@ -516,7 +516,7 @@ Default value: %1]]), GestureDetector.DOUBLE_TAP_INTERVAL/1000),
|
||||
Set two finger tap duration in milliseconds.
|
||||
The duration value can range from 100 (0.1 seconds) to 2000 (2 seconds).
|
||||
Default value: %1]]), GestureDetector.TWO_FINGER_TAP_DURATION/1000),
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = GestureDetector:getInterval("ges_two_finger_tap_duration")/1000,
|
||||
value_min = 100,
|
||||
value_max = 2000,
|
||||
@@ -543,7 +543,7 @@ Default value: %1]]), GestureDetector.TWO_FINGER_TAP_DURATION/1000),
|
||||
Set hold interval in milliseconds.
|
||||
The interval value can range from 100 (0.1 seconds) to 2000 (2 seconds).
|
||||
Default value: %1]]), GestureDetector.HOLD_INTERVAL/1000),
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = GestureDetector:getInterval("ges_hold_interval")/1000,
|
||||
value_min = 100,
|
||||
value_max = 2000,
|
||||
@@ -570,7 +570,7 @@ Default value: %1]]), GestureDetector.HOLD_INTERVAL/1000),
|
||||
Set pan delay interval in milliseconds.
|
||||
The interval value can range from 100 (0.1 seconds) to 2000 (2 seconds).
|
||||
Default value: %1]]), GestureDetector.PAN_DELAYED_INTERVAL/1000),
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = GestureDetector:getInterval("ges_pan_delayed_interval")/1000,
|
||||
value_min = 100,
|
||||
value_max = 2000,
|
||||
@@ -597,7 +597,7 @@ Default value: %1]]), GestureDetector.PAN_DELAYED_INTERVAL/1000),
|
||||
Set swipe interval in milliseconds.
|
||||
The interval value can range from 100 (0.1 seconds) to 2000 (2 seconds).
|
||||
Default value: %1]]), GestureDetector.SWIPE_INTERVAL/1000),
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = GestureDetector:getInterval("ges_swipe_interval")/1000,
|
||||
value_min = 100,
|
||||
value_max = 2000,
|
||||
|
||||
Reference in New Issue
Block a user