scalableminds / webknossos

Visualize, share and annotate your large 3D images online
https://webknossos.org
GNU Affero General Public License v3.0
127 stars 24 forks source link

Refactor input mouse handling #3475

Open philippotto opened 5 years ago

philippotto commented 5 years ago

At the moment, we are manually attaching to a dom node via a selector, which can change (e.g., when the golden layout adapter re-instantiates the layout) though.

daniel-wer commented 5 years ago

This is partly resolved in #4031. Components which still break because of this (but lower prio):

philippotto commented 3 years ago

See https://github.com/scalableminds/webknossos/pull/5429/files#r621310352 which again gave some attention to this issue. The new FlexLayout lazily renders the input-catchers (so, if the viewport is hidden by the layout it won't be rendered at all). Since we are waiting for these DOM elements, the current approach is a bit sub-optimal (perf-wise and also in general a bit messy).