RelaX Posted July 29, 2015 Share Posted July 29, 2015 Hi,I think I found a bug, OnPointerOverTrigger and OnPointerOutTrigger aren't triggered when you zoom in or out with mousewheel with your ArcRotateCamera. You can see what I mean in this playground scenehttp://www.babylonjs-playground.com/?17 brgdsRelaX Quote Link to comment Share on other sites More sharing options...
RaananW Posted July 31, 2015 Share Posted July 31, 2015 Hi,works for me quite well, I tried zooming in and out and in and out and in again, while moving the mouse - all triggers worked.What browser are you using? I tested on both chrome and IE11. Quote Link to comment Share on other sites More sharing options...
iiceman Posted July 31, 2015 Share Posted July 31, 2015 I think he means if you don't move the mouse. Like pointing on something the zooming until the cursor is not on the object anymore and then it should stop the hover effect (but it doesn't). RelaX 1 Quote Link to comment Share on other sites More sharing options...
RelaX Posted July 31, 2015 Author Share Posted July 31, 2015 I think he means if you don't move the mouse. Yes, that's what I mean. Is that wanted behavior, or a bug? If it's wanted, could someone tell me where I can change it? Quote Link to comment Share on other sites More sharing options...
RaananW Posted July 31, 2015 Share Posted July 31, 2015 Sorry, I get it now.I doubt this is wanted :-) it has something to do with the fact that there is no mouse movement and therefore no pointer event. But I guess it would be possible to trigger the pointer move event at the same pointer position right after zooming. Let me pay with it a bit and see. Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 1, 2015 Share Posted August 1, 2015 So - line 6 is the solution:http://www.babylonjs-playground.com/#2KKEEV @DK - is there any reason not to add it to the scene's attachControl function? I don't see any problem, but maybe you see something. RelaX 1 Quote Link to comment Share on other sites More sharing options...
RelaX Posted August 2, 2015 Author Share Posted August 2, 2015 So - line 6 is the solution:http://www.babylonjs-playground.com/#2KKEEVHm, I might be wrong, but it seems like it doesn't trigger OnPointerOverTrigger and it looks like it triggers OnPointerOutTrigger exactly one time. Firefox uses DOMMouseScroll instead of mousewheel. Is it possible to add the event to the scene instead of implementing my own mousewheel detection, which could vary from babylons implementation. Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 2, 2015 Share Posted August 2, 2015 Yep, both should be added. I will wait for DK a little more and add this in a day or two. will be integrated in 2.2 probably. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 3, 2015 Share Posted August 3, 2015 I'm PRETTY sure it was supported Oo.. No reason to not have it in the scene itself...I'll fix it right now! RelaX 1 Quote Link to comment Share on other sites More sharing options...
RelaX Posted August 14, 2015 Author Share Posted August 14, 2015 @DK just tested it in v2.2.0-alpha, seems like you are checking before you scroll, with old positions.http://www.babylonjs-playground.com/#1UG5B0I changed the wheelPrecision to make it clearer, trigger the pointerOver Event and make "one tick" with your mousewheel, you'll see what I mean Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 14, 2015 Share Posted August 14, 2015 yes this is unfortunate. But the camera keeps moving due to inertia. The event is no more raised by the mouse so the actionmanager is not aware of this Quote Link to comment Share on other sites More sharing options...
RelaX Posted August 18, 2015 Author Share Posted August 18, 2015 Hm, is there an event I could listen to? If not my best Idea would be something like this: function mouseEvent(evt) { setTimeout(function () { scene._onPointerMove(evt); }, 300); } canvas.addEventListener('DOMMouseScroll', mouseEvent, false);http://www.babylonjs-playground.com/#2KKEEV#2 It's "working" Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 18, 2015 Share Posted August 18, 2015 Sounds good Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.