Skip to content

Commit

Permalink
Merge branch 'palette_generator' of github.com:gspencergoog/packages …
Browse files Browse the repository at this point in the history
…into palette_generator
  • Loading branch information
gspencergoog committed Jul 6, 2018
2 parents 128a4ff + dc6a3af commit 10c9b3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class _ImageColorsState extends State<ImageColors> {
void _onPanEnd(DragEndDetails details) async {
Rect newRegion =
(Offset.zero & imageKey.currentContext.size).intersect(dragRegion);
if (newRegion.size == Size.zero) {
if (newRegion.size.width < 4 && newRegion.size.width < 4) {
newRegion = Offset.zero & imageKey.currentContext.size;
}
await _updatePaletteGenerator(newRegion);
Expand Down

0 comments on commit 10c9b3e

Please sign in to comment.