GeezerVison is showing github.com — Blockly.DRAG_RADIUS to ? · Issue #131 · scratchfoundation/scratch-blocks
Blockly.DRAG_RADIUS to ? #131DescriptionBlockly has a DRAG_RADIUS which makes the blocks a bit "sticky" - unless you move the mouse pointer 5px or more (by default), the block won't start dragging.
My feel of it is that it makes the blocks feel sluggish on touch. Setting it to 1 makes the start of drags feel much nicer. If there's no reason to keep it at > 1, I'll set it to 1. ActivityRoboErikG commented on Mar 22, 2016 Even on a quick tap with a touchscreen you're likely to get a move event of
a few pixels. This might cause a drag to start every time you tap a block.
Also, check that it doesn't prevent taps from registering on a touch screen
if the drag is started.
On Mar 21, 2016 11:53 PM, "Tim Mickel" [email protected] wrote:
Blockly has a DRAG_RADIUS which makes the blocks a bit "sticky" - unless
you move the mouse pointer 5px or more (by default), the block won't start
dragging.
My feel of it is that it makes the blocks feel sluggish on touch. Setting
it to 1 makes the start of drags feel much nicer. If there's no reason to
keep it at > 1, I'll set it to 1.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#131
tmickel commented on Mar 29, 2016 ContributorAuthor More actions @thisandagain @carljbowman Any thoughts on this?
I think Scratch and ScratchJr's current behavior is most like DRAG_RADIUS = 1, if that's worth anything.
We seem to be able to differentiate between a quick tap and a small drag, although sometimes you can drag when you intend to tap. Maybe it's worth playing with values > 1 but < 5? thisandagain commented on Apr 11, 2016 I spoke with Neil about this a while back and we tried a few different values. None of which we could detect a difference with. Now that the dragging performance is improved we should just bench test again. I can take care of that later today. changed the title [-]Blockly.DRAG_RADIUS to 1[/-] [+]Blockly.DRAG_RADIUS to ?[/+] on Apr 11, 2016tmickel commented on Apr 11, 2016 ContributorAuthor More actions thisandagain commented on Apr 11, 2016 Played with this a little bit today after #187 landed. I'm not able to perceive any real difference between various different DRAG_RADIUS settings unless I really crank up the value. I recommend closing for now. tmickel commented on Apr 12, 2016 ContributorAuthor More actions Ok, I could be crazy from looking at it too much. I do think we should consider it conjunction with #198
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|