From e46c0ec3de15dd39ea6f384ec33d2cca9b22e862 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Fri, 1 Nov 2019 10:16:24 -0400 Subject: [PATCH] Call beginPath after clearing text bubble canvas --- src/TextBubbleSkin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TextBubbleSkin.js b/src/TextBubbleSkin.js index ab0085c..11a21cb 100644 --- a/src/TextBubbleSkin.js +++ b/src/TextBubbleSkin.js @@ -180,6 +180,7 @@ class TextBubbleSkin extends Skin { } // Draw the bubble's rounded borders + ctx.beginPath(); ctx.moveTo(BubbleStyle.CORNER_RADIUS, paddedHeight); ctx.arcTo(0, paddedHeight, 0, paddedHeight - BubbleStyle.CORNER_RADIUS, BubbleStyle.CORNER_RADIUS); ctx.arcTo(0, 0, paddedWidth, 0, BubbleStyle.CORNER_RADIUS);