godbout / Scrolla.docs

Scroll with Vim motions under macOS
64 stars 0 forks source link

issue with showing canvas in certain cases #9

Closed godbout closed 1 year ago

godbout commented 1 year ago

at least two cases:

  1. own Sl Settings window. may need to extra handling for own app as the AX is gonna have to ping something different (focused window vs main window)
  2. float panels like Alfred etc. The Canvas should be drawn on the app that gets back the focus once those apps like Alfred disappear. currently my guess is that The Canvas is drawn on those apps, that disappear, but

then the scrolling event can still be emitted on the app below. UX is messy.

https://user-images.githubusercontent.com/121373/203731261-bad7c2b3-29eb-4768-ab63-01a9917779ef.mp4

godbout commented 1 year ago

the DisplayEngine handled only frontmost apps detected by the AX. this is what kV needed, because kV needs to act on windows for which the app is not active—e.g. Alfred, Raycast, Dash, etc.—but for Wooshy/Scrolla, we want to avoid detecting those non activating panel. the DisplayEngine now has a func to return the frontmost app detected by the workspace, whcih means only frontmost app that are active.

https://user-images.githubusercontent.com/121373/203946911-6ba8f170-3a22-4e30-bba5-de12e82f3ce3.mp4

godbout commented 1 year ago

done in a3.