Skip to content

Commit

Permalink
Selection of a range in color pallet now scrolls.
Browse files Browse the repository at this point in the history
Fixes aseprite#1796
Simply added an update_scroll call after the mouse dragging is processed.
  • Loading branch information
vcoder committed Jul 25, 2018
1 parent c0ebc24 commit ca9e41b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/ui/palette_view.cpp
Expand Up @@ -538,6 +538,9 @@ void PaletteView::onPaint(ui::PaintEvent& ev)
if (dragging) {
dragPicks.resize(m_hot.color+picksCount);
std::fill(dragPicks.begin()+m_hot.color, dragPicks.end(), true);

update_scroll(dragPicks.firstPick());
invalidate();
}
PalettePicks& picks = (dragging ? dragPicks: m_selectedEntries);

Expand Down

0 comments on commit ca9e41b

Please sign in to comment.