Jump to content

BJS yesterday or today update ArcRotateCamera bug


Blax
 Share

Recommended Posts

I don't see any changes made to the ArcRotateCamera apart from that - https://github.com/BabylonJS/Babylon.js/commit/97179d04dab8902ae080b9605db1bf4509ce8ce7 , but i doubt this caused any problem with the mouse. The playground is working as well.

Are you getting any errors in the console? Have you tried the github latest build?

Link to comment
Share on other sites

Same here!

 

It works in IE only for me with 2.3.

Unfortunately this is really annoying so I had to switch back to 2.2.

 

I looked a while for any differences between the playground and my app, because in the playground it worked.

 

Some notes:

  - The view seemed to not receive any pointer events

  - My canvas, for example, is a flex item.

 

It seems like the pointer event poly fill doesn't work in particular

HTML trees with a specific kind of css positioning.

 

This is what it looks like for me.

 

 

Have a nice day!

Link to comment
Share on other sites

I experience no problem with the yesterday BJS version...

Could this be related to the two latest commits (about scene.picking https://github.com/BabylonJS/Babylon.js/commit/9ec12206022a7740487ebc922812f0bf46b3e85b and touches https://github.com/BabylonJS/Babylon.js/commit/c0c7c25a0678066c23ec8bd403dd5989101a3b09) ?

Link to comment
Share on other sites

Did a simple scene on jsfiddle and could reproduce the issue: http://jsfiddle.net/rv0ww3jp/

Using an older repository commit of BJS works: http://jsfiddle.net/rv0ww3jp/1/

(For reference, I'm testing on Chrome Mobile on Samsung Galaxy S4)



Switching to PEP is even better. That's what I tried using at first but I couldn't get PEP to work.

I tried using these link for PEP: 

https://code.jquery.com/pep/0.4.0/pep.min.jshttps://code.jquery.com/pep/0.3.0/pep.js
Link to comment
Share on other sites

Same problem here. The ArcRotateCamera is not working on IPad anymore with the latest build.

I'm using hand.1.3.8.js and it is loaded first. I also tried pep but that doesn't help.

 

The problem was introduced with the change in Tools.GetPointerPrefix() in this commit:

https://github.com/BabylonJS/Babylon.js/commit/c0c7c25a0678066c23ec8bd403dd5989101a3b09

 

The fix from this commit doesn't help:

https://github.com/BabylonJS/Babylon.js/commit/1bdc6ffd6fc41eeb159d723b5876cb9cff3a65f0

 

changing the line if (!window.PointerEvent) back to if (!navigator.pointerEnabled) fixes the problem for me.

Link to comment
Share on other sites

If you are using PEP you cannot use a CSS rule to specify touch action but you have to add it directly to the canvas:

https://github.com/BabylonJS/Samples/blob/master/Demos/ActionBuilder/index.html#L24

 

Thank you, that works. ^_^

That means, we have to use PEP from now on because babylonjs is currently not compatible with hands.js (regarding touch devices).

This could be a problem for someone who upgrades from babylonjs 2.2 to 2.3 don't you think? Is this change documented somewhere?

Link to comment
Share on other sites

Hmmm, even with PEP I can't use mobile touches anymore.

I think it may be relative to

 

If you are using PEP you cannot use a CSS rule to specify touch action but you have to add it directly to the canvas:

https://github.com/BabylonJS/Samples/blob/master/Demos/ActionBuilder/index.html#L24

 

But since I'm injecting the canvas via javascript, I can't add touch action directly in the HTML code. And canvas.style.touchAction = "none" have no effect, I'm still not able to manipulate arcrotate on mobiles...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...