aboutsummaryrefslogtreecommitdiff
path: root/data/core/view.lua
AgeCommit message (Collapse)Author
2022-06-07initial documentation for better code completionjgmdev
2022-04-28Send `mouseleft` event when the mouse leaves the window (#928)Guldoman
* Send `mouseleft` event when the mouse leaves the window * Call `View:on_mouse_left` when the mouse leaves the `View` Previously `View:on_mouse_left` was called only when the mouse left the window, and it was called on every visible `View`. Now it gets also called when the mouse "changes" `View`, and only the last `View` the mouse was on will receive the event.
2022-04-26Clamp scroll position when dragging the scrollbar without animationsGuldoman
2022-04-26Don't animate scrolling by dragging the scroll bar (#940)Guldoman
Also added the `config.animate_drag_scroll` option to re-enable the behavior.
2022-04-25Add animation categories to enable finer transitions control (#941)Guldoman
* Allow finer control over transitions * Add categories to transitions
2022-04-12Fix missing pixel in scrollbarGuldoman
2022-04-12Add scrollbar "track" and resize on hoverGuldoman
2022-03-01Use epsilon to compare values in `move_towards`Guldoman
2022-02-15Allow intercepting `filedropped` eventsGuldoman
The event is first sent to the underlying `View`; if not handled, it's managed as before.
2021-11-23Manual merge of into .Adam Harrison
2021-11-14Also changed docview mousewheel into a scroll command.Adam Harrison
2021-11-14Moved commands out to the outer event loop.Adam Harrison
2021-11-14Added in double, and triple clicking.Adam Harrison
2021-11-14Added in clicks to keymap.Adam Harrison
2021-10-10Fix dirty pixels problem on window's right sideFrancesco Abbate
The last column of pixel on the window's right side isn't correctly drawn and pixels appear dirty and more noticeably when the a NagView message was previously shown, a stripe of red pixels remains on the right. We use now a more souding roundig scheme. Now the rectangles to clip or to draw are passed around as Lua numbers without any rounding. In turns, when the rect coordinates are passed to the renderer we ensure the border of the rect are correctly snapped to the pixel's grid. It works by computing the coordinates of the edges, round them to integers and then compute the rect's width based on the rounded coordinates values.
2021-09-08Revert horizontal scroll implementationGuldoman
2021-08-30Split vertical and horizontal scrollbar-related functions and variablesGuldoman
2021-08-30Add horizontal scrollbarGuldoman
Classes and plugins that relied on having only the vertical scrollbar should continue working.
2021-08-30Extend `View` to allow horizontal scrollingGuldoman
2021-08-27Introduce View objects context propertyFrancesco Abbate
Used to determine if an instance of the given class should be closed or not when a project session is terminated.
2021-07-15Revert "fix number of parameters passed to self:move_towards"takase1121
Apparently the LSP intellisense is wrong on this one, this actually causes an infinite loop
2021-07-15fix number of parameters passed to self:move_towardstakase1121
self:move_towards(self) causes self to be passed twice, ignoring rate
2021-03-20Minor simplification of animation rate adjustmentFrancesco Abbate
2021-03-18Compute animation rate only if neededFrancesco Abbate
2021-03-10Make animation speed independent of config.fps, add config.animation_rate to ↵liquidev
fine-tune animation speed (#93) * animation rate config field * @franko's math magic to make it look more correct
2021-02-21Add config.transitions to enable/disable transitionsFrancesco Abbate
2020-05-19Added core.set_active_view(); removed `focusable` boolean from Viewrxi
2020-05-02Added scroll boundsrxi
Resolves #9 Resolves #6 Resolves #3
2020-05-01Improved handling of zero-sized locked nodes on RootViewrxi
2020-04-30Changed `View:get_content_offset()` to round resultant valuesrxi
Avoids some issues that occur with fractional offsets, most noticable on rectangles drawn on DocView jittering by 1-pixel when scrolling
2019-12-28Initial commitrxi