From e485687b29d64a7a372839aefcac324148239ad0 Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Tue, 27 Dec 2022 17:43:00 +0000 Subject: [PATCH] strokeProperties: enable smoothing on web #171 --- lib/components/canvas/tools/stroke_properties.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/canvas/tools/stroke_properties.dart b/lib/components/canvas/tools/stroke_properties.dart index 0e3bb6af8..ee0317e07 100644 --- a/lib/components/canvas/tools/stroke_properties.dart +++ b/lib/components/canvas/tools/stroke_properties.dart @@ -1,4 +1,5 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:saber/components/canvas/tools/highlighter.dart'; @@ -6,7 +7,7 @@ class StrokeProperties { static const Color defaultColor = Colors.black; static const double defaultSize = 10; static const double defaultThinning = 0.7; - static const double defaultSmoothing = 0; + static const double defaultSmoothing = kIsWeb ? 0.5 : 0; static const double defaultStreamline = 0.5; static const double defaultTaperStart = 0.0; static const double defaultTaperEnd = 0.0;