Skip to content

Fix cursors #4184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed

Conversation

epicfaace
Copy link
Contributor

@epicfaace epicfaace commented Dec 21, 2018

Resolves

Resolves #2755 - Drag cursor (and delete cursor) disappears from block after starting drag.

Proposed Changes

Essentially, this PR makes a small difference to the changes done to fix issue #2584.

Rather than disabling pointer events for elements with class blocklyBlockDragSurface (which ends up disabling the delete and other cursors as well), this solution disables pointer events for class blocklyDraggingMouseThrough. See https://github.com/LLK/scratch-blocks/blob/develop/core/block_svg.js#L1029

Reason for Changes

Fixes cursor issues.

Test Coverage

None

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

@paulkaplan
Copy link
Contributor

@epicfaace this seems to fix the cursor issue, but brings back the issue that #2584 fixed. The drag surface that should have pointer events cancelled does not ever get the blocklyDraggingMouseThrough class.

@paulkaplan
Copy link
Contributor

@epicfaace I'm going to close this since #5078 fixes this issue without the related stack click issues

@paulkaplan paulkaplan closed this Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drag cursor (and delete cursor) disappears from block after starting drag
3 participants