floooh / oryol

A small, portable and extensible C++ 3D coding framework
MIT License
2k stars 200 forks source link

Broken canvasX/canvasY values inside emscInputMgr::emscMouseMove callback #344

Open olgasuryaninova opened 4 years ago

olgasuryaninova commented 4 years ago

When mouse callbacks track canvas element then EmscriptenMouseEvent:::canvasX/canvasY values are broken inside of method emscInputMgr::emscMouseMove(int eventType, const EmscriptenMouseEvent* e, void* userData). But if EmscriptenMouseEvent::targetX/targetY are used instead of::canvasX/canvasY they are correct.