mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-18 11:30:32 -05:00
Feature/touch web gui support (#798)
* Added touch support for web GUI * Code cleanup after master merge, no functionality changes * Fixed alignment of function arguments
This commit is contained in:
@@ -131,6 +131,18 @@ bool BrowserInstance::sendMouseClickEvent(const CefMouseEvent& event,
|
||||
return hasContent(event.x, event.y);
|
||||
}
|
||||
|
||||
void BrowserInstance::sendTouchPressEvent(const CefMouseEvent &event, CefBrowserHost::MouseButtonType button,
|
||||
const int clickCount)
|
||||
{
|
||||
_browser->GetHost()->SendMouseClickEvent(event, button, false, clickCount);
|
||||
}
|
||||
|
||||
void BrowserInstance::sendResleasePressEvent(const CefMouseEvent &event, CefBrowserHost::MouseButtonType button,
|
||||
const int clickCount)
|
||||
{
|
||||
_browser->GetHost()->SendMouseClickEvent(event, button, true, clickCount);
|
||||
}
|
||||
|
||||
bool BrowserInstance::sendMouseMoveEvent(const CefMouseEvent& event) {
|
||||
constexpr const bool DidNotLeaveWindow = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user