Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisseau committed Oct 14, 2024
1 parent 74f32fb commit 69f9d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/canvas_editor/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ function addPointerListeners(canvasElement, drawArea, JavaEditorArea) {
fireMouseEvent(JavaEditorArea.MOUSE_EVENT_CLICKED, ev, ev.detail);
});
canvasElement.addEventListener('pointerenter', (ev) => {
// event.detail on pointerenter doesn't include the click count
fireMouseEvent(JavaEditorArea.MOUSE_EVENT_ENTERED, ev);
});
canvasElement.addEventListener('pointerleave', (ev) => {
// event.detail on pointerenter doesn't include the click count
fireMouseEvent(JavaEditorArea.MOUSE_EVENT_EXITED, ev);
});
canvasElement.addEventListener('pointermove', (ev) => {
Expand Down

0 comments on commit 69f9d12

Please sign in to comment.