mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	[Renderers/HTML] Fix a mouse overlap bug with external scroll handling
This commit is contained in:
		
							parent
							
								
									0835781602
								
							
						
					
					
						commit
						a5e212b8de
					
				
							
								
								
									
										2
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -3939,7 +3939,7 @@ void Clay_SetPointerState(Clay_Vector2 position, bool isPointerDown) {
 | 
				
			||||||
                Clay_BoundingBox elementBox = mapItem->boundingBox;
 | 
					                Clay_BoundingBox elementBox = mapItem->boundingBox;
 | 
				
			||||||
                elementBox.x -= root->pointerOffset.x;
 | 
					                elementBox.x -= root->pointerOffset.x;
 | 
				
			||||||
                elementBox.y -= root->pointerOffset.y;
 | 
					                elementBox.y -= root->pointerOffset.y;
 | 
				
			||||||
                if ((Clay__PointIsInsideRect(position, elementBox)) && (clipElementId == 0 || (Clay__PointIsInsideRect(position, clipItem->boundingBox)))) {
 | 
					                if ((Clay__PointIsInsideRect(position, elementBox)) && (clipElementId == 0 || (Clay__PointIsInsideRect(position, clipItem->boundingBox)) || context->externalScrollHandlingEnabled)) {
 | 
				
			||||||
                    if (mapItem->onHoverFunction) {
 | 
					                    if (mapItem->onHoverFunction) {
 | 
				
			||||||
                        mapItem->onHoverFunction(mapItem->elementId, context->pointerInfo, mapItem->hoverFunctionUserData);
 | 
					                        mapItem->onHoverFunction(mapItem->elementId, context->pointerInfo, mapItem->hoverFunctionUserData);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in a new issue