mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Use a pointing hand GLFW cursor for the web grab cursor (#3465)
* Use a pointing hand GLFW cursor for the web grab cursor * Add TODO comment about custom cursor
This commit is contained in:
@@ -128,6 +128,13 @@ bool BrowserClient::DisplayHandler::OnCursorChange(CefRefPtr<CefBrowser>, CefCur
|
||||
case cef_cursor_type_t::CT_NOTALLOWED:
|
||||
newCursor = WindowDelegate::Cursor::NotAllowed;
|
||||
break;
|
||||
case cef_cursor_type_t::CT_GRAB:
|
||||
case cef_cursor_type_t::CT_GRABBING:
|
||||
// There is no "grabbing" cursors in GLFW, so for now the pointing hand to
|
||||
// make web objects that use drag-n-drop look more interactive.
|
||||
// @TODO (emmbr, 2024-12-09) Add custom cursors for these cases
|
||||
newCursor = WindowDelegate::Cursor::PointingHand;
|
||||
break;
|
||||
default:
|
||||
newCursor = WindowDelegate::Cursor::Arrow;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user