mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 12:54:23 +01:00 
			
		
		
		
	persist pointerDown event (#1426)
This commit is contained in:
		@@ -1577,6 +1577,8 @@ class App extends React.Component<any, AppState> {
 | 
			
		||||
  private handleCanvasPointerDown = (
 | 
			
		||||
    event: React.PointerEvent<HTMLCanvasElement>,
 | 
			
		||||
  ) => {
 | 
			
		||||
    event.persist();
 | 
			
		||||
 | 
			
		||||
    if (lastPointerUp !== null) {
 | 
			
		||||
      // Unfortunately, sometimes we don't get a pointerup after a pointerdown,
 | 
			
		||||
      // this can happen when a contextual menu or alert is triggered. In order to avoid
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user