Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] DocView.on_mouse_released() gets called twice #312

Open
SwissalpS opened this issue Jun 24, 2023 · 1 comment
Open

[bug] DocView.on_mouse_released() gets called twice #312

SwissalpS opened this issue Jun 24, 2023 · 1 comment

Comments

@SwissalpS
Copy link

to reproduce:

  • clone/checkout master at [38bd9b3] (latest as of this writing)
  • build it
  • add this plugin:
local DocView = require "core.docview"

local omr = DocView.on_mouse_released
function DocView:on_mouse_released(...)
  print 'on_mouse_released....'
  return omr(self, ...) --true --false --nil
end

local omp = DocView.on_mouse_pressed
function DocView:on_mouse_pressed(...)
  print 'on_mouse_pressed'
  return omp(self, ...)
end
  • launch lite from terminal
  • see that for every click+release output is one pressed and two released:
on_mouse_pressed
on_mouse_released....
on_mouse_released....
@SwissalpS
Copy link
Author

adding debug line here:

core.root_view:on_mouse_released(...)

shows that the error is on lua side. Here there is only one signal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant