mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:10:40 +02:00
Resolve comments of @sethalves . Remove whitespaces.
This commit is contained in:
parent
cab6f3f7c3
commit
8d9cfbdf31
1 changed files with 27 additions and 29 deletions
|
@ -447,14 +447,12 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
|||
if (this->_pressed && event.getType() == PointerEvent::Move) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send mouse events to the Web surface so that HTML dialog elements work with mouse press and hover.
|
||||
// FIXME: Scroll bar dragging is a bit unstable in the tablet (content can jump up and down at times).
|
||||
// This may be improved in Qt 5.8. Release notes: "Cleaned up touch and mouse event delivery".
|
||||
|
||||
QMouseEvent* mouseEvent = new QMouseEvent(mouseType, windowPoint, windowPoint, windowPoint, button, buttons, Qt::NoModifier);
|
||||
QCoreApplication::postEvent(_webSurface->getWindow(), mouseEvent);
|
||||
|
||||
}
|
||||
|
||||
void Web3DOverlay::handlePointerEventAsMouse(const PointerEvent& event) {
|
||||
|
|
Loading…
Reference in a new issue