Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
diyaayay committed Dec 2, 2024
1 parent a9526be commit 4632483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ function pointer(p5, fn){
if (executeDefault === false) {
e.preventDefault();
}
} else if (typeof context.mouseDragged === 'function') {
} else if (this.mouseIsPressed && typeof context.mouseDragged === 'function') {
executeDefault = context.mouseDragged(e);
if (executeDefault === false) {
e.preventDefault();
Expand Down

0 comments on commit 4632483

Please sign in to comment.