Changeset 196631 in webkit
- Timestamp:
- Feb 16, 2016 1:45:41 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r196629 r196631 1 2016-02-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Mouse cursor doesn't change when entering scrollbars 4 https://bugs.webkit.org/show_bug.cgi?id=154243 5 6 Reviewed by Simon Fraser. 7 8 If the scrollbar is over or very close to text or a link, when 9 entering the scrollbar the cursor is not changed, keeping the beam 10 or hand cursor when using the scrollbar. Same happens for image 11 documents where the magnifier cursor is used and it remains when 12 entering the scrollbars. We should use pointer cursor always for 13 scrollbars. 14 15 * page/EventHandler.cpp: 16 (WebCore::EventHandler::updateCursor): Request also to include 17 frame scrollbars in hit test result. 18 (WebCore::EventHandler::selectCursor): Use always pointer cursor 19 for scrollbars. 20 1 21 2016-02-15 Antti Koivisto <antti@apple.com> 2 22 -
trunk/Source/WebCore/page/EventHandler.cpp
r196520 r196631 1339 1339 PlatformKeyboardEvent::getCurrentModifierState(shiftKey, ctrlKey, altKey, metaKey); 1340 1340 1341 HitTestRequest request(HitTestRequest::ReadOnly );1341 HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::AllowFrameScrollbars); 1342 1342 HitTestResult result(view->windowToContents(m_lastKnownMousePosition)); 1343 1343 renderView->hitTest(request, result); … … 1362 1362 return NoCursorChange; 1363 1363 #endif 1364 1365 // Use always pointer cursor for scrollbars. 1366 if (result.scrollbar()) { 1367 #if ENABLE(CURSOR_VISIBILITY) 1368 cancelAutoHideCursorTimer(); 1369 #endif 1370 return pointerCursor(); 1371 } 1364 1372 1365 1373 Node* node = result.targetNode();
Note: See TracChangeset
for help on using the changeset viewer.