juhojo / corejumper

Platformer game
MIT License
2 stars 0 forks source link

CSS cursor 'grabbing' extremely buggy. #15

Closed juhojo closed 7 years ago

juhojo commented 7 years ago

Currently the class 'grabbing' gets added and removed to/from body accordingly but it still displays regular grab instead of grabbing when dragging the handle. After releasing mouse down on the handle the class 'grabbing' gets removed from body but it displays the 'grabbing' cursor on handle which should at this point be 'grab' . This behavior is either caused by faulty CSS or the classList function is at its current state broken for some odd reason. This needs to be fixed.

juhojo commented 7 years ago

This needs to be checked again when released to production. The bug is not caused by the cursor property, but sometimes the package "postcss/autoprefixer" that is used for browser-prefixes fails on webpack compile causing missing prefixes.