GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Blockly.DRAG_RADIUS to ? · Issue #131 · scratchfoundation/scratch-blocks

Blockly.DRAG_RADIUS to ? #131

New issue
Copy link
New issue
Copy link
Closed
Closed
Blockly.DRAG_RADIUS to ?#131
Copy link
Assignees
thisandagain
Labels
enhancement
Milestone
April 21

Description

@tmickel
tmickel
opened on Mar 22, 2016
Issue body actions

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.

Activity

  1. tmickel
    added
    enhancement
    on Mar 22, 2016
  2. tmickel
    self-assigned this
    on Mar 22, 2016
  3. RoboErikG commented on Mar 22, 2016

    @RoboErikG
    RoboErikG
    on Mar 22, 2016
    Contributor
    More actions

    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

  4. tmickel
    added this to the April 21 milestone on Mar 28, 2016
  5. tmickel commented on Mar 29, 2016

    @tmickel
    tmickel
    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?

  6. tmickel
    removed their assignment
    on Apr 4, 2016
  7. kaschm
    added
    needs-discussion
    on Apr 4, 2016
  8. kaschm
    assigned
    thisandagain
    on Apr 4, 2016
  9. thisandagain commented on Apr 11, 2016

    @thisandagain
    thisandagain
    on Apr 11, 2016
    Contributor
    More actions

    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.

  10. thisandagain
    removed
    needs-discussion
    on Apr 11, 2016
  11. thisandagain
    changed the title [-]Blockly.DRAG_RADIUS to 1[/-] [+]Blockly.DRAG_RADIUS to ?[/+] on Apr 11, 2016
  12. tmickel commented on Apr 11, 2016

    @tmickel
    tmickel
    on Apr 11, 2016
    ContributorAuthor
    More actions

    @thisandagain I suggest trying on #187

  13. thisandagain commented on Apr 11, 2016

    @thisandagain
    thisandagain
    on Apr 11, 2016
    Contributor
    More actions

    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.

  14. thisandagain
    closed this as completedon Apr 11, 2016
  15. tmickel commented on Apr 12, 2016

    @tmickel
    tmickel
    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

  16. picklesrus
    added a commit that references this issue on Aug 4, 2017

    Merge pull request scratchfoundation#131 from LLK/greenkeeper/postcss…

    82d51cb
  17. cwillisf
    added a commit that references this issue on Oct 11, 2024

    fix: don't warn about procedure references when moving the definition…

    cda58cc
  18. github-actions
    added 2 commits that reference this issue on Oct 18, 2024

    chore(release): 1.2.0-beta.1 [skip ci]

    3ff2b98

    chore(release): 2.0.0-spork.1 [skip ci]

    638ee0f
  19. github-actions
    added a commit that references this issue on Mar 4, 2026

    chore(release): 2.0.0 [skip ci]

    6825fc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thisandagain
    thisandagain

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    • April 21

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.