Skip to content

Commit da51a07

Browse files
committed
feat(playground): allow drag&drop on whole page
1 parent 359d1f9 commit da51a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/playground/control.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ export function setupControl(selector: string, customSettings: alphaTab.json.Set
251251
console.error('alphaTab error', e);
252252
});
253253

254-
el.ondragover = e => {
254+
document.ondragover = e => {
255255
e.stopPropagation();
256256
e.preventDefault();
257257
e.dataTransfer!.dropEffect = 'link';
258258
};
259259

260-
el.ondrop = e => {
260+
document.ondrop = e => {
261261
e.stopPropagation();
262262
e.preventDefault();
263263
const files = e.dataTransfer!.files;

0 commit comments

Comments
 (0)