Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KRDC
Commits
0d7998fa
Unverified
Commit
0d7998fa
authored
Oct 09, 2020
by
Oleg `Kanedias` Chernovskiy
Browse files
Fix mouse wheel scaling same way as click
parent
8911cd56
Changes
1
Hide whitespace changes
Inline
Side-by-side
vnc/vncview.cpp
View file @
0d7998fa
...
...
@@ -645,8 +645,12 @@ void VncView::wheelEventHandler(QWheelEvent *event)
else
eb
|=
0x8
;
const
int
x
=
qRound
(
event
->
x
()
/
m_horizontalFactor
);
const
int
y
=
qRound
(
event
->
y
()
/
m_verticalFactor
);
const
auto
dpr
=
devicePixelRatioF
();
// We need to restore mouse position in device coordinates.
const
QPointF
pos
=
event
->
position
()
*
dpr
;
const
int
x
=
qRound
(
pos
.
x
()
/
m_horizontalFactor
);
const
int
y
=
qRound
(
pos
.
y
()
/
m_verticalFactor
);
vncThread
.
mouseEvent
(
x
,
y
,
eb
|
m_buttonMask
);
vncThread
.
mouseEvent
(
x
,
y
,
m_buttonMask
);
...
...
Albert Astals Cid
@aacid
mentioned in commit
96d7a8ab
·
Jan 18, 2021
mentioned in commit
96d7a8ab
mentioned in commit 96d7a8ab94f6e41ab61ee0b505409f7f972ff777
Toggle commit list
Albert Astals Cid
@aacid
mentioned in merge request
!8 (merged)
·
Jan 18, 2021
mentioned in merge request
!8 (merged)
mentioned in merge request !8
Toggle commit list
Albert Astals Cid
@aacid
mentioned in commit
ea9c186d
·
Jan 24, 2021
mentioned in commit
ea9c186d
mentioned in commit ea9c186db1d5056aaa263a0c3c64ddbca67f2a16
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment