lite-xl/data/core
Francesco Abbate 0b2bf227a8 Fix inactive divider intercepting mouse clicks
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.
2021-08-06 09:07:17 -07:00
..
commands Removed unecessary duplicates. 2021-07-20 14:50:40 -04:00
doc Removed unecessary duplicates. 2021-07-20 14:50:40 -04:00
command.lua Added missing NagView dialog commands to startup. 2021-06-09 20:13:23 -04:00
commandview.lua Do not close command view on open-file is file is invalid or it is a directory 2021-05-05 08:04:51 +02:00
common.lua Merge branch 'master' into Merged 2021-08-01 14:58:36 -04:00
config.lua Namespace plugin-specific configuration settings. 2021-07-15 17:58:14 -04:00
contextmenu.lua Added context menu to treeview. 2021-06-28 11:11:49 -04:00
docview.lua Move gutter width calculation out of loop 2021-07-28 13:02:38 -07:00
init.lua Merge branch 'master' into Merged 2021-08-01 14:58:36 -04:00
keymap-macos.lua Created an extra command, to implement appropriat cmd+w behaviour on mac. 2021-06-27 13:18:54 -04:00
keymap.lua Merged dev to master. 2021-07-20 14:39:50 -04:00
logview.lua Added multiline support for LogView's messages 2020-05-06 00:06:27 +01:00
modkeys-generic.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
modkeys-macos.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
nagview.lua Fix undeclared NagView findindex() by moving it to common. 2021-06-13 21:28:29 -04:00
object.lua Initial commit 2019-12-28 11:17:56 +00:00
regex.lua Merged dev to master. 2021-07-20 14:39:50 -04:00
rootview.lua Fix inactive divider intercepting mouse clicks 2021-08-06 09:07:17 -07:00
start.lua Bump 2.0-beta1 version 2021-07-17 21:30:25 +02:00
statusview.lua Do not assume doc.indent_info is present 2021-03-05 23:47:36 +01:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua Add a C API copy method for font_desc objects 2021-06-21 11:18:52 +02:00
syntax.lua Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
titleview.lua Make non-borderless mode work 2021-04-12 19:05:30 +02:00
tokenizer.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
view.lua Revert "fix number of parameters passed to self:move_towards" 2021-07-15 18:01:27 -04:00