Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
0e692770
Commit
0e692770
authored
May 31, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for vertical/horizontal (using Ctrl/Shift + mousewheel) panning in GAL canvas.
parent
4f678a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wx_view_controls.cpp
common/view/wx_view_controls.cpp
+2
-2
No files found.
common/view/wx_view_controls.cpp
View file @
0e692770
...
@@ -134,8 +134,8 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent )
...
@@ -134,8 +134,8 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent )
if
(
aEvent
.
ControlDown
()
||
aEvent
.
ShiftDown
()
)
if
(
aEvent
.
ControlDown
()
||
aEvent
.
ShiftDown
()
)
{
{
// Scrolling
// Scrolling
VECTOR2D
scrollVec
=
m_view
->
ToWorld
(
m_view
->
GetScreenPixelSize
()
*
VECTOR2D
scrollVec
=
m_view
->
ToWorld
(
m_view
->
GetScreenPixelSize
()
,
false
)
*
(
(
double
)
aEvent
.
GetWheelRotation
()
*
wheelPanSpeed
)
,
false
)
;
(
(
double
)
aEvent
.
GetWheelRotation
()
*
wheelPanSpeed
);
double
scrollSpeed
;
double
scrollSpeed
;
if
(
abs
(
scrollVec
.
x
)
>
abs
(
scrollVec
.
y
)
)
if
(
abs
(
scrollVec
.
x
)
>
abs
(
scrollVec
.
y
)
)
...
...
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