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

popupmenus closed scrollbar is clicked #4537

Closed
rcubetrac opened this issue Apr 24, 2014 · 11 comments
Closed

popupmenus closed scrollbar is clicked #4537

rcubetrac opened this issue Apr 24, 2014 · 11 comments

Comments

@rcubetrac
Copy link

Reported by rocknob on 24 Apr 2014 11:08 UTC as Trac ticket #1489832

  1. compose a message.
  2. press the language selection button and scroll down to the end (or at the end, scroll up) by pressing the mousebutton

the selection will close immediately and you cant select a language for spellchecker.

scrolling down with mouse is no problem

Keywords: thomasb
Migrated-From: http://trac.roundcube.net/ticket/1489832

@rcubetrac
Copy link
Author

Comment by @alecpl on 24 Apr 2014 18:10 UTC

This is true for all popupmenus with scrollbars. This can be fixed by using onclick event instead of onmouseup for body_mouseup function. I'm not sure such change will not break something, so must be well tested. Thomas, what do you think?

@rcubetrac
Copy link
Author

Keywords changed by @alecpl on 24 Apr 2014 18:10 UTC

thomasb

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 24 Apr 2014 18:10 UTC

later => 1.0.1

@rcubetrac
Copy link
Author

Summary changed by @alecpl on 24 Apr 2014 18:10 UTC

Spellcheckinglanguage selection bug

popupmenus closed scrollbar is clicked

@rcubetrac
Copy link
Author

Comment by @thomascube on 25 Apr 2014 15:15 UTC

That should actually be covered somehow by the rcube_mouse_is_over() check. Maybe that's where we should start investigating and fixing things. Unfortunately, on my Mac I don't have buttons to operate scroll bars...

@rcubetrac
Copy link
Author

Comment by @thomascube on 25 Apr 2014 15:51 UTC

But it's much simple than that: when one clicked the scrollbar, the event target equals the popup menu contain. Otherwise the target is a child element. Thus checking target != obj.get(0) should do it. I still need to verify that theory on different browsers...

@rcubetrac
Copy link
Author

Comment by @thomascube on 25 Apr 2014 16:15 UTC

Fixed in commit 8dc87e6.

@rcubetrac
Copy link
Author

Status changed by @thomascube on 25 Apr 2014 16:15 UTC

new => closed

@rcubetrac
Copy link
Author

Comment by rocknob on 28 Apr 2014 07:58 UTC

shure it is fixed ? i see it works in IE but not in Firefox ?

@rcubetrac
Copy link
Author

Comment by @alecpl on 28 Apr 2014 08:09 UTC

Works for me in recent stable version of Firefox.

@rcubetrac
Copy link
Author

Comment by rocknob on 28 Apr 2014 11:25 UTC

so i need no aply more than these two fixes? i will wait till 1.0.1 is out :)

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

1 participant