Closed CosmoMyzrailGorynych closed 1 month ago
Thanks so much for helping us to improve Neutralinojs. Would you like to display your name and GitHub profile link on: https://neutralino.js.org/docs/contributing/committers ?
Should I make a PR? x)
Thanks so much for helping us to improve Neutralinojs. Would you like to display your name and GitHub profile link on: https://neutralino.js.org/docs/contributing/committers ?
Should I make a PR? x)
Sure :tada: -- thanks :tada:
Closes https://github.com/neutralinojs/neutralinojs/issues/1301
TODO:
comment.any
for the changed methods.New call signature:
setDraggableRegion(domElementOrId: string | HTMLElement, options: DraggableRegionOptions = {})
DraggableRegionOptions
isBefore:
Yellow circle indicates mouse clicks. Note how the window misbehaves after releasing the mouse button outside the window.
After, with no options:
Better capture overall but can still break it with flicking near the window's edge.
I can't accept mediocrity, so I added an option to capture the pointer immediately when pressing the drag area. This disables any pointer events on children elements and thus requires layout changes for custom titlebars, so it is opt-in only.
After, with
alwaysCapture: true
Best results: can't break it. Flicking near the edges still captures the pointer.