use hold_release event to cancel page crop
This commit is contained in:
1 parent
a1aa41136c
commit
47371ea8b4
1 file changed
+7
@@ -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