☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Mouse PressUp event strange behavior

Community Support
Andromeda
Andromeda

If you hold down the mouse button - activated Press event, and then move the mouse and release the button - PressUp event does not work. This is by design, or some kind of mistake? But if PressUp event called after the movement of the mouse - we would have a simple implementation of Drag & Drop

⌁   Link to post
Bryan
Bryan

@Andromeda it’s impossible to say much without code to investigate and actually see first-hand what is happening. Please provide a minimal, complete reproducer as well as relevant version information.

Otherwise, all I can do is note that Bokeh relies on HammerJS under the covers to handle UI events and point you towards it: https://hammerjs.github.io/

⌁   Link to post
Bryan
Bryan

I mean this as respectfully as possible, but I was asking for more effort on your part than just copy/pasting the large complicated example from the repo. I.e. a minimal example. There are hundreds of thousands of users and only a handful of maintainers/consistent answers. The only way this works if if users put in some effort to ask good, detailed, focused questions.

All that said I just realized what the issue here is. The “press up” event is a touch gesture, only relevant on touch displays. It has nothing to do with mouse events.

If you want to implement drag operations with a mouse then the relevant events are PanStart, Pan, and PanEnd

⌁   Link to post

End of archived discussion · Replies are disabled