Email or username:

Password:

Forgot your password?
andrew blinn

multiline GUIs now play nice-ish with selections

13 comments
andrew blinn

if you noticed the flicker youre obligated to tell me how to fix it

Ivan Reese

@disconcision peel strips of dry birch bark or crumpled paper if you have any, put a little more kindling around and over, blow very gently

Kirill Osenkov

@disconcision maybe throttle and delay selection updates by 50ms so when the mouse moves fast it ignores some transient mouse positions (but I haven't tried it and don't know if it'll work at all)

Callionica

@disconcision The flicker appears to be a border flickering on and off as your mouse moves between the individual lines of your multi line text string. Someone said you can throttle/delay visual updates to handle that, which is true. You could also update your hit testing so that you’re not toggling the borders while the mouse is within the bounding box of the multiline text. Don’t know how your UI is built so hard to be more specific.

Vlad

@disconcision I don't see a scenario where you want the cursor to be _before_ the multiline string while you're also moused over the multiline string. Therefore, I'd make it so that your cursor is always placed after the multiline string block when you're moused over the multiline string. Just an idea though, may fail for other reasons.

andrew blinn

@aidenfoxivey this the new implementation of livelits (hazel.org/papers/livelits-pape) for the new(ish) version of the hazel editor (hazel.org)

Panicz Maciej Godek

@disconcision i just figured, livelits sound almost like leibniz (as in got fried) @aidenfoxivey

Kirill Osenkov

@disconcision what is this written in? what UI framework is it using? is it open-source?

andrew blinn

@KirillOsenkov this is a feature branch for the hazel editor (hazel.org), all the source is on github. this build isn't live atm though. it's written in reasonML using incr_dom. the UI is basically 100% bespoke, for better and for worse

DS

@disconcision I'm fascinated by the angled caret/indicators in the selections! I noticed sometimes it's angled outwards and sometimes it's inwards, but I couldn't figure out the logic even after watching very slowly (I even saw a "normal" vertical caret in one moment). What's the logic behind it?

Go Up