From 7afbc58f25058190fa8d3876a6cb0cb24359df7d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 5 Jul 2022 01:57:52 +0000 Subject: [PATCH] pixel-perfect circle dragging --- projects/nat-flixel-desktop-playground/source/EntrySprite.kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/nat-flixel-desktop-playground/source/EntrySprite.kiss b/projects/nat-flixel-desktop-playground/source/EntrySprite.kiss index f90150bd..cc75eca4 100644 --- a/projects/nat-flixel-desktop-playground/source/EntrySprite.kiss +++ b/projects/nat-flixel-desktop-playground/source/EntrySprite.kiss @@ -26,7 +26,7 @@ (let [:Float scale (getScale e)] (this.scale.set scale scale) (updateHitbox)) - (enableMouseClicks false) + (enableMouseClicks false (hasComponent e Circle)) // pixel-perfect if the sprite is a circle (enableMouseDrag) (set mouseStartDragCallback ->[self _dx _dy]