Skip to content

Commit

Permalink
Set imgui pointer events on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Deseteral committed Sep 30, 2023
1 parent b62af4e commit 834d325
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ponczek.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export abstract class Ponczek {

Ponczek.imguiCanvas = document.createElement('canvas');
Ponczek.imguiCanvas.setAttribute('id', 'imgui-canvas');
Ponczek.imguiCanvas.style.pointerEvents = Ponczek.debugMode ? 'all' : 'none';

containerEl.innerHTML = '';
containerEl.appendChild(Ponczek.screen._domElement);
Expand Down

0 comments on commit 834d325

Please sign in to comment.