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
How to change cursor during drag? #161
Comments
Thanks! <div gridsterItemPrototype ...
(start)="$event.item.$element.classList.add('is-dragging')"
(cancel)="$event.item.$element.classList.remove('is-dragging')">
</div> But for that I will also provide natively |
Yes, I thought if I put in a shared common.css file globally applied, it would work. But for some reason, it does not. It has trouble changing the cursor during drag, only after the mouseup occurs. I am investigating to see what is causing this. |
Actually, it seems that this is only an issue with Chrome. Firefox has no problem to change the cursor during drag, while the mouse is still But chrome, cannot do this. That's weird. UPDATE: Nevermind. now its working, lol. I updated all my node_modules and now it works. So I guess there was some other issue? Either way, it definitely works using the code above! |
I'm glad that it works for you now. Never the less I leave this issue open, to improve some CSS related parts in my project. |
Hi, great framework. I'm trying to change the cursor during drag. Using CSS only doesnt seem to work.
gridsterItemPrototype
It stays as
grab
when hovering and during drag, and as soon as I let go of the mouse after drag, it flashes to themove
and then back todrag
.So I figured I can try with javascript.
There is
GridsterItemComponent
andgridsterItemPrototypeDirective
. Which one is better to use? What is the difference? I can't find the difference based on the docs, seems like they are two ways to do the same thing? Both havestart
andend
drag events. Thanks for any help.The text was updated successfully, but these errors were encountered: