diff options
Diffstat (limited to 'plugins/dragdropselected.lua')
-rw-r--r-- | plugins/dragdropselected.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/dragdropselected.lua b/plugins/dragdropselected.lua index a26a82c..6bdb101 100644 --- a/plugins/dragdropselected.lua +++ b/plugins/dragdropselected.lua @@ -78,6 +78,10 @@ end -- DocView:on_mouse_moved -- override DocView:on_mouse_pressed local on_mouse_pressed = DocView.on_mouse_pressed function DocView:on_mouse_pressed(button, x, y, clicks) + local caught = DocView.super.on_mouse_pressed(self, button, x, y, clicks) + if caught then + return caught + end -- no need to proceed if not left button or has no selection if ('left' ~= button) or (not self.doc:has_selection()) |