File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -790,7 +790,11 @@ p5.prototype._onresize = function(e) {
790
790
) {
791
791
this . _updateNextMouseCoords ( evt ) ;
792
792
}
793
- // Otherwise, do not update mouse coordinates, as the last event's coordinates may be stale
793
+ // Otherwise, do not update mouse coordinates. In this case, the mouse coordinates
794
+ // retain their previous values, which may not reflect the current mouse position.
795
+ // This can occur if the window is resized without a recent mouse event (e.g., if the
796
+ // user resizes the window without moving the mouse). The coordinates remain unchanged
797
+ // until the next valid mouse event is received.
794
798
}
795
799
const context = this . _isGlobal ? window : this ;
796
800
let executeDefault ;
You can’t perform that action at this time.
0 commit comments