mirror of
				https://codeberg.org/1414codeforge/yui.git
				synced 2025-06-05 22:19:11 +02:00 
			
		
		
		
	[ui] Elaborate more on drop events flags.
This commit is contained in:
		
							
								
								
									
										3
									
								
								ui.lua
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ui.lua
									
									
									
									
									
								
							| @@ -165,10 +165,11 @@ local function globalactions(ui, snap) | |||||||
| end | end | ||||||
|  |  | ||||||
| local function eventpropagate(ui, snap) | local function eventpropagate(ui, snap) | ||||||
|     -- 1. Pointer events |     -- Ignore event flags, in case focused widget requires direct input | ||||||
|     local dropPointer = ui.focused and ui.focused.grabpointer |     local dropPointer = ui.focused and ui.focused.grabpointer | ||||||
|     local dropAction = ui.focused and ui.focused.grabkeyboard |     local dropAction = ui.focused and ui.focused.grabkeyboard | ||||||
|  |  | ||||||
|  |     -- 1. Pointer events | ||||||
|     if snap.pointer and not dropPointer then |     if snap.pointer and not dropPointer then | ||||||
|         local root = ui[1] |         local root = ui[1] | ||||||
|         local x,y,w,h = root.x,root.y,root.w,root.h |         local x,y,w,h = root.x,root.y,root.w,root.h | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user