Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Very strange behavior. #44

Open
bjornkihlberg opened this issue May 3, 2019 · 1 comment
Open

Very strange behavior. #44

bjornkihlberg opened this issue May 3, 2019 · 1 comment

Comments

@bjornkihlberg
Copy link

module Main where

import Prelude

import Data.Maybe (maybe)
import Effect (Effect)
import Effect.Console (log)
import FRP.Behavior (animate)
import FRP.Behavior.Mouse (position)
import FRP.Event.Mouse (getMouse)

main :: Effect Unit
main = do
    mousePos <- getMouse <#> position
    animate mousePos (maybe (pure unit) (show >>> log)) # join

I'd expect the above code to print coordinates as I move the mouse over the browser. But it just prints 1172 20 times at once per second (roughly, maybe exactly once a second) for a while and then prints some random numbers and then starts printing coordinates but at very sparse and random intervals. Is this expected behavior? It seems very strange. I use Edge.

screenshot

@safareli
Copy link

safareli commented Jul 23, 2019

Do you get same issue in other browsers? which version of Edge you got this issue too?

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

No branches or pull requests

2 participants