mirror of
https://github.com/lichess-org/chessground.git
synced 2026-05-26 13:50:53 +00:00
Merge pull request #382 from jshnaidman/fix/webkit-square-visibility
Square node pool visibility: hidden causes rendering artifacts on WebKitGTK
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ export const translateAndScale = (el: HTMLElement, pos: cg.NumberPair, scale = 1
|
||||
};
|
||||
|
||||
export const setVisible = (el: HTMLElement, v: boolean): void => {
|
||||
el.style.visibility = v ? 'visible' : 'hidden';
|
||||
el.style.display = v ? '' : 'none';
|
||||
};
|
||||
|
||||
export const eventPosition = (e: cg.MouchEvent): cg.NumberPair | undefined => {
|
||||
|
||||
Reference in New Issue
Block a user