|  |  |  | @ -25,30 +25,24 @@ window.addEventListener('touchstart', function onFirstTouch() { | 
		
	
		
			
				|  |  |  |  | // brings us a bit closer but is not optimal.
 | 
		
	
		
			
				|  |  |  |  | export let dragThreshold = 10 * (window.devicePixelRatio || 1); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | let _cursor_uris_supported = null; | 
		
	
		
			
				|  |  |  |  | let _supportsCursorURIs = false; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | export function supportsCursorURIs() { | 
		
	
		
			
				|  |  |  |  |     if (_cursor_uris_supported === null) { | 
		
	
		
			
				|  |  |  |  |         try { | 
		
	
		
			
				|  |  |  |  | try { | 
		
	
		
			
				|  |  |  |  |     const target = document.createElement('canvas'); | 
		
	
		
			
				|  |  |  |  |     target.style.cursor = 'url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     if (target.style.cursor) { | 
		
	
		
			
				|  |  |  |  |         Log.Info("Data URI scheme cursor supported"); | 
		
	
		
			
				|  |  |  |  |                 _cursor_uris_supported = true; | 
		
	
		
			
				|  |  |  |  |         _supportsCursorURIs = true; | 
		
	
		
			
				|  |  |  |  |     } else { | 
		
	
		
			
				|  |  |  |  |         Log.Warn("Data URI scheme cursor not supported"); | 
		
	
		
			
				|  |  |  |  |                 _cursor_uris_supported = false; | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |         } catch (exc) { | 
		
	
		
			
				|  |  |  |  | } catch (exc) { | 
		
	
		
			
				|  |  |  |  |     Log.Error("Data URI scheme cursor test exception: " + exc); | 
		
	
		
			
				|  |  |  |  |             _cursor_uris_supported = false; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     return _cursor_uris_supported; | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | export const supportsCursorURIs = _supportsCursorURIs; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | let _supportsImageMetadata = false; | 
		
	
		
			
				|  |  |  |  | try { | 
		
	
		
			
				|  |  |  |  |     new ImageData(new Uint8ClampedArray(4), 1, 1); | 
		
	
	
		
			
				
					|  |  |  | 
 |