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