mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Allow locking the gyro to the current screen mode (#6347)
* Allow locking the gyro to the current screen mode (i.e., orientation). * Tweak the "sticky rota" option to work both ways * More rotation constant usage instead of magic numbers
This commit is contained in:
@@ -287,6 +287,7 @@ describe("device module", function()
|
||||
local kindle_dev = require('device/kindle/device')
|
||||
assert.is.same("KindleOasis", kindle_dev.model)
|
||||
kindle_dev:init()
|
||||
kindle_dev:lockGSensor(true)
|
||||
|
||||
kindle_dev.input:waitEvent()
|
||||
assert.stub(UIManager.onRotation).was_called()
|
||||
|
||||
Reference in New Issue
Block a user