ReactiveX / learnrx

A series of interactive exercises for learning Microsoft's Reactive Extensions Library for Javascript.
1.4k stars 291 forks source link

exercise 33 is broken #64

Open tadjik1 opened 9 years ago

tadjik1 commented 9 years ago

there is a problem with contactPoint event object — there are no offsetX and offsetY properties.

krivulcik commented 9 years ago

This is the case only in firefox. I got affected by this too, but it works correctly in Chromium. This seems to be not easily fixable: http://stackoverflow.com/questions/12704686/html5-with-jquery-e-offsetx-is-undefined-in-firefox http://stackoverflow.com/questions/11334452/event-offsetx-in-firefox

peteruithoven commented 9 years ago

Also see: http://www.quirksmode.org/js/events_properties.html#position

gabrielkunkel commented 8 years ago

I'm using Chrome and the results of exercise 33 is no different than exercise 32. No matter where the contact point is, the sprint still places itself so the mouse arrow is at the top left-hand corner. I clicked "Show Answer" before I ran it.

Is this a different issue? Am I the only one experiencing this?

varungupta85 commented 8 years ago

@gabrielkunkel I see the issue on Firefox but not on Chrome. You may want to refresh the page and run the exercise again in Chrome to discard any stale state in the application.

mjomble commented 8 years ago

@gabrielkunkel PR #130 has a fix for that

morenoh149 commented 8 years ago

fixed by https://github.com/ReactiveX/learnrx/pull/130

mjomble commented 8 years ago

It is possible the original problem is still unresolved, #130 only fixed the issue later mentioned by @gabrielkunkel

thomasvanlankveld commented 8 years ago

When I run the answer (in chrome), the sprite disappears from the screen if I drag it