-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix Slider issues #22
Comments
I was checking this one. It looks like Miso is trying to update the DOM, and, material-components-web.js is also trying to update the DOM. The DOM diff goes to an inconsistent state because of it. I am not sure how to debug the Miso application to verify if it is the case. |
Is this under jsaddle? Under jsaddle even a simple vanilla-miso text input will get desynchronized. I was able to reproduce with jsaddle, but with ghcjs all of the components that interact with the Model are stuck, with no errors in the console. |
Yes this is under jsaddle. I will look into this some more. It's interesting that jsaddle and ghcjs behaviour differs so much. Do you have any ideas why that could be? |
Well, jsaddle is supposed to only be used for development, so while annoying it's not critical. jsaddle is laggy in general because all the logic is in the Haskell executable and the browser constantly communicates with it. I think what causes the race condition is that the communication is asynchronous. Funny coincidence because I made it async in dmjio/miso#597. It looks like it's been reverted since in dmjio/miso#632, so I'd recommend pinning miso like so:
or any version after the revert. I've tried that, but I've run into other issues and gave up. I see that the decoder for While playing with it I also added |
I finally have the time to work on this project again. For jsaddle we could specify this with this line https://github.com/developandplay/material-components-web-miso/blob/562f7fe418040d094e6db79c00c2c87b02aa51a7/sample-app-jsaddle/Main.hs#L84-L85 Regarding the |
This is probably due to aforemny/material-components-web-elm#141 (comment) as this project depends on |
It's probably worth it to revisit this issue since with dmjio/miso#675 |
Known Issues:
Rapid clicking or rapid dragging leads to crashes.
In full screen mode Slider position coordinates are off.
Originally posted by @developandplay in #21 (comment)
The text was updated successfully, but these errors were encountered: