aboutsummaryrefslogtreecommitdiff
path: root/src/lib/lua52
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-08-04 22:13:56 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-08-04 22:13:56 +0200
commit1f276c0bcb6e5fc6b7f3175fb2912de95832ab2f (patch)
treefb912856557e8c4820fa0a9f6db3b21b4db9a055 /src/lib/lua52
parentcee1639d34e5b104f9c8b6a1d4c8e00be6bafe64 (diff)
downloadlite-xl-fix-invisible-node-click-intercept.tar.gz
lite-xl-fix-invisible-node-click-intercept.zip
Fix inactive divider intercepting mouse clicksfix-invisible-node-click-intercept
In the function Node:get_divider_overlapping_point() we check if we hit a divider (separator between two nodes). If yes the event is intercepted and used to set the cursor and drag the separator if appropriate. In reality, on mouse move events, when one of the node is a split and one of its child is not resizable we don't set the cursor to and we don't intercept the event. However on a mouse pressed event the event was intercepted regardless of the fact that the child nodes are resizable or not. This latter behavior was unwanted as it prevents mouse clicks to be processed because of a divided that is inactive. In addition it prevented processing of mouse clicks when the child node was invisible leading to issue #363. For this latter the issue was the invisible NagView in the upper part of the window. To fix the problem we provide a divider with Node:get_divider_overlapping_point() only if its child node are resizable. In this way the mouse clicks or movements are intercepted only if the divider is actually active.
Diffstat (limited to 'src/lib/lua52')
0 files changed, 0 insertions, 0 deletions