Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
be3602df
Commit
be3602df
authored
9 years ago
by
DreamSourceLab
Browse files
Options
Download
Email Patches
Plain Diff
improve mouse drag-and-drop effect
parent
3bc3da8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DSView/pv/view/viewport.cpp
DSView/pv/view/viewport.cpp
+2
-2
No files found.
DSView/pv/view/viewport.cpp
View file @
be3602df
...
...
@@ -512,10 +512,10 @@ void Viewport::mouseReleaseEvent(QMouseEvent *event)
_drag_sig
.
reset
();
const
double
strength
=
_drag_strength
*
DragTimerInterval
*
1.0
/
_time
.
elapsed
();
if
(
_drag_strength
<
MinorDragOffsetUp
&&
abs
(
strength
)
>
MinorDragRateUp
)
{
if
(
abs
(
_drag_strength
)
<
MinorDragOffsetUp
&&
abs
(
strength
)
>
MinorDragRateUp
)
{
_drag_strength
=
_drag_strength
;
_drag_timer
.
start
(
DragTimerInterval
);
}
else
if
(
abs
(
strength
)
>
0.5
*
DragTimerInterval
)
{
}
else
if
(
abs
(
strength
)
>
DragTimerInterval
)
{
_drag_strength
=
strength
*
5
;
_drag_timer
.
start
(
DragTimerInterval
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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