Closed alecgibson closed 5 years ago
We currently listen for resize events fired on the window to redraw the cursors.
resize
However, this approach misses the event where the editor is resized for other reasons (such as through JavaScript), without the window being resized.
Ideally, we'd use the new ResizeObserver class, but this is restricted just to Chrome for now. Instead, we're using a polyfill.
ResizeObserver
We currently listen for
resize
events fired on the window to redraw the cursors.However, this approach misses the event where the editor is resized for other reasons (such as through JavaScript), without the window being resized.
Ideally, we'd use the new
ResizeObserver
class, but this is restricted just to Chrome for now. Instead, we're using a polyfill.