]> git.lyx.org Git - features.git/commit
Amend 101363352c111
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 24 Aug 2023 07:56:09 +0000 (09:56 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 24 Aug 2023 07:56:09 +0000 (09:56 +0200)
commiteffd65a586468321dcf0aeab34872d5607102477
tree9c8007ce022dbc6eff5226e82fdaff35711f3308
parent7157e42044a1157b6b9e6f504af77730a4ecd538
Amend 101363352c111

Instead of just disabling MOUSE_MOTION on inset buttons, we now register
the coordinates where the latest mouse press happens, and if that's on
the inset button we are on when releasing, we toggle the inset.

Thus, minimal unintentional mouse movements don't lead to the button not
to respond.
src/Cursor.cpp
src/Cursor.h
src/Text.cpp
src/insets/Inset.cpp
src/insets/InsetCollapsible.cpp