Skip to content
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

Update proxy.js #1254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update proxy.js #1254

wants to merge 1 commit into from

Conversation

mikewu-x2
Copy link

There is no way to modify the cursor style on the drag node, unless the initial cursor style is set to "auto". I would like to be able to customize both the initial hovering cursor style as well as the drag cursor style.

I find the whole dragCursor implementation to me clunky to begin with but at least this allows me to use the attribute when I actually want to.

Needs:

  • Unit test
  • History.md update

There is no way to modify the cursor style on the drag node, unless the initial cursor style is set to "auto". I would like to be able to customize both the initial hovering cursor style as well as the drag cursor style.

I find the whole dragCursor implementation to me clunky to begin with but at least this allows me to use the attribute when I actually want to.
@clarle
Copy link
Collaborator

clarle commented Oct 2, 2013

@mikewu-x2 Looks okay to me, could you add a unit test before we merge it in? Thanks for the contribution!

@@ -209,7 +208,8 @@
if (ah) {
cur = ah.getStyle('cursor');
}
if (cur === 'auto') {

if (cur === 'auto' || (cur !== 'auto' && DDM.get('dragCursor') !== 'move')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cur !== 'auto' is unnecessary. If the left-hand side evaluated to false, then it is implied cur is not equal to "auto".

@triptych
Copy link
Contributor

@mikewu-x2 Have you had a chance to look at adding a unit test and HISTORY.md entry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants