mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 05:22:11 +02:00
Add comment re scrollbar stability in tablet
This commit is contained in:
parent
f954767b84
commit
06910d1881
1 changed files with 4 additions and 0 deletions
|
@ -353,6 +353,10 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
|||
if (event.getType() == PointerEvent::Move) {
|
||||
// Forward a mouse move event to the Web surface so that hover events are generated.
|
||||
// Must send a mouse move event that matches up with touch move event in order for scroll bars to work.
|
||||
|
||||
// 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(QEvent::MouseMove, windowPoint, windowPoint, windowPoint, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
|
||||
QCoreApplication::postEvent(_webSurface->getWindow(), mouseEvent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue