* fix: canvas panning stops when hovering over frame title (#10340) * improve --------- Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -1476,6 +1476,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
return (
|
||||
<div
|
||||
id={this.getFrameNameDOMId(f)}
|
||||
className={CLASSES.FRAME_NAME}
|
||||
key={f.id}
|
||||
style={{
|
||||
position: "absolute",
|
||||
@@ -11252,12 +11253,13 @@ class App extends React.Component<AppProps, AppState> {
|
||||
(
|
||||
event: WheelEvent | React.WheelEvent<HTMLDivElement | HTMLCanvasElement>,
|
||||
) => {
|
||||
// if not scrolling on canvas/wysiwyg, ignore
|
||||
if (
|
||||
!(
|
||||
event.target instanceof HTMLCanvasElement ||
|
||||
event.target instanceof HTMLTextAreaElement ||
|
||||
event.target instanceof HTMLIFrameElement
|
||||
event.target instanceof HTMLIFrameElement ||
|
||||
(event.target instanceof HTMLElement &&
|
||||
event.target.classList.contains(CLASSES.FRAME_NAME))
|
||||
)
|
||||
) {
|
||||
// prevent zooming the browser (but allow scrolling DOM)
|
||||
|
||||
Reference in New Issue
Block a user