oakmac / chessboard2

chessboard.js v2
ISC License
81 stars 7 forks source link

add ResizeObserver to the root element #23

Open oakmac opened 1 year ago

oakmac commented 1 year ago

It looks like ResizeObserver has pretty decent browser support these days.

Chessboard2 could listen for changes to the root element width and trigger a debounced .resize() method.