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

Handle mouse release even if it happens outside the button it concerns #30

Open
der-ali opened this issue Aug 13, 2019 · 5 comments
Open

Comments

@der-ali
Copy link

der-ali commented Aug 13, 2019

Peek 2019-08-13 14-28

On GNOME Shell 3.28.4

@maoschanz
Copy link
Owner

maoschanz commented Aug 13, 2019

You began a click on the note, moved the pointer, and released the click outside of the note before the note followed the pointer, so the note didn't get the release signal. It's still waiting for your click release, and will continue to follow the cursor movement until it gets a release signal.

Edit: I label it "enhancement" because the current behavior is what i expect. A better design might be possible, but here there is no bug it's acting like it should.

@der-ali
Copy link
Author

der-ali commented Aug 15, 2019

I understand, but the problem is when you move the courser a little bit fast, the courser slides out of the note and i need to go back and drag the note again. I think you should fix the note to the mouse-courser as in the folder example
Peek 2019-08-15 17-04

@maoschanz
Copy link
Owner

But the folder is managed by the desktop extension, which uses the whole screen (in the background). If i use the whole screen for the notes, it wouldn't be possible to interact with the windows/desktop underneath when the notes are visible

@maoschanz maoschanz changed the title sticky note moves on mouse-hover instead of on hold Handle mouse release even if they happen outside the button they concern Jun 7, 2020
@maoschanz
Copy link
Owner

maoschanz commented Jun 7, 2020

  • if the note is waiting for motion signals, after [some time, like 300ms] without any signal, move the note to the position of the cursor
  • same for resize
  • once moved, if the click is actually released, act like if it had been released on the button
  • same for resize

downside: using mainloop timeouts is highly discouraged by the (outdated?) blog post explaining how to get the extension approved

@maoschanz maoschanz changed the title Handle mouse release even if they happen outside the button they concern Handle mouse release even if it happens outside the button it concerns Jun 7, 2020
@maoschanz maoschanz pinned this issue Feb 22, 2021
@dimdin
Copy link

dimdin commented Sep 14, 2021

I just discovered this helpful extension and that issue appeared.
Please consider grabbing the pointer using Gdk.Seat.grab() while moving or resizing notes.

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

No branches or pull requests

3 participants