diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-13 03:04:05 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-13 03:04:05 +0400 |
commit | a53e864cf4b5f2a37f34602469c0998ec7cd5ad4 (patch) | |
tree | b97b80cbe53abcc3c025bd61e2abf0e1f9f0aeca /source/blender/makesdna | |
parent | 51b9d85b091cbc31d73968f0652e59dd83247ca2 (diff) |
Fix T37572: text editor scrolling not working well with Mac trackpad panning.
The trackpad would give isolated mouse pan events with a distance smaller than
one line or character. For other 2D views this is all accumulated in floats,
but in the text editor it only keeps track of integers, and the small mouse pan
events got lost due to rounding.
Now it keeps track of sub-line or sub-character scroll offsets to avoid this.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 4fe0920b7c6..9038885f6af 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -849,6 +849,8 @@ typedef struct SpaceText { char pad[4]; void *drawcache; /* cache for faster drawing */ + + float scroll_accum[2]; /* runtime, for scroll increments smaller than a line */ } SpaceText; |