Skip to content

Commit

Permalink
chore: Remove obsolete workaround for resize events on iPads.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko committed Nov 22, 2024
1 parent f1cbaab commit 5a1d2c9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import * as Touch from './touch.js';
import * as aria from './utils/aria.js';
import * as dom from './utils/dom.js';
import {Svg} from './utils/svg.js';
import * as userAgent from './utils/useragent.js';
import * as WidgetDiv from './widgetdiv.js';
import {WorkspaceSvg} from './workspace_svg.js';

Expand Down Expand Up @@ -337,18 +336,6 @@ function bindDocumentEvents() {
// should run regardless of what other touch event handlers have run.
browserEvents.bind(document, 'touchend', null, Touch.longStop);
browserEvents.bind(document, 'touchcancel', null, Touch.longStop);
// Some iPad versions don't fire resize after portrait to landscape change.
if (userAgent.IPAD) {
browserEvents.conditionalBind(
window,
'orientationchange',
document,
function () {
// TODO (#397): Fix for multiple Blockly workspaces.
common.svgResize(common.getMainWorkspace() as WorkspaceSvg);
},
);
}
}
documentEventsBound = true;
}
Expand Down

0 comments on commit 5a1d2c9

Please sign in to comment.