diff options
author | David Robillard <d@drobilla.net> | 2015-01-16 21:04:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-16 21:04:38 -0500 |
commit | 8f823388d9bd5aa8e297ab05be8c9fb323518945 (patch) | |
tree | bc0b1659c6bb33c7f048c0f67939a81a0f523b1a /libs/canvas/canvas | |
parent | 14a235ca8a21ae46cc211df8250bab42ba42a85f (diff) |
Kludgey fix for invisible playhead when scrolled.
The problem this is avoiding makes absolutely no sense. Either I'm dumb, or
something is more deeply wrong with scroll group bounding boxes, or both, but I
don't care anymore. This works. Viva release mode.
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/scroll_group.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/canvas/canvas/scroll_group.h b/libs/canvas/canvas/scroll_group.h index fd9b2388d4..86bbf9821b 100644 --- a/libs/canvas/canvas/scroll_group.h +++ b/libs/canvas/canvas/scroll_group.h @@ -35,8 +35,8 @@ class LIBCANVAS_API ScrollGroup : public Container ScrollsHorizontally = 0x2 }; - ScrollGroup (Canvas*, ScrollSensitivity); - ScrollGroup (Item*, ScrollSensitivity); + ScrollGroup (Canvas*, ScrollSensitivity, bool clip=true); + ScrollGroup (Item*, ScrollSensitivity, bool clip=true); void scroll_to (Duple const& d); Duple scroll_offset() const { return _scroll_offset; } @@ -51,6 +51,7 @@ class LIBCANVAS_API ScrollGroup : public Container private: ScrollSensitivity _scroll_sensitivity; Duple _scroll_offset; + bool _clip; }; } |