Skip to content

Commit

Permalink
Merge pull request #11 from argorain/too-fast-movement-when-dragged-a…
Browse files Browse the repository at this point in the history
…t-onmovedstart

Fix nonlinear movement when scaled
  • Loading branch information
neckaros authored Dec 19, 2020
2 parents d7341a5 + 7daa6b4 commit 4de5627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline_editor_track.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class TimelineEditorCard extends ITimelineEditorCard {
if (onMovedStart != null && selected)
GestureDetector(
onHorizontalDragUpdate: (d) => onMovedStart(
durationFromSeconds(d.delta.dx * pixelsPerSeconds)),
durationFromSeconds(d.delta.dx / pixelsPerSeconds)),
child: Align(
alignment: Alignment.centerLeft,
child: SizedBox(
Expand Down

0 comments on commit 4de5627

Please sign in to comment.