mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
use hold_release event to cancel page crop
This commit is contained in:
@@ -142,6 +142,13 @@ function BBoxWidget:onConfirmCrop()
|
||||
UIManager.repaint_all = true
|
||||
end
|
||||
|
||||
function BBoxWidget:onCancelCrop()
|
||||
UIManager:close(self)
|
||||
self.ui:handleEvent(Event:new("SetZoomMode", self.orig_zoom_mode))
|
||||
self.document.configurable.text_wrap = self.orig_reflow_mode
|
||||
UIManager.repaint_all = true
|
||||
end
|
||||
|
||||
ReaderCropping = InputContainer:new{}
|
||||
|
||||
function ReaderCropping:onPageCrop(mode)
|
||||
|
||||
Reference in New Issue
Block a user