gamify Posted February 21, 2017 Share Posted February 21, 2017 when i click on object the map tile is selected because i used panning now how to make individual selection of tile and object Quote Link to comment Share on other sites More sharing options...
Parasyte Posted February 21, 2017 Share Posted February 21, 2017 Please clarify what you mean by "select". If you want something like this, you have to build it with pointer events, state management, and drawing your own selection rings. Quote Link to comment Share on other sites More sharing options...
gamify Posted February 22, 2017 Author Share Posted February 22, 2017 when i select tile by pointer for panning is working so when i drag and drop object to the map and click the object instead of object [object background ] i.e tile is selected for panning Quote Link to comment Share on other sites More sharing options...
Parasyte Posted February 23, 2017 Share Posted February 23, 2017 This sounds like maybe a pointer event ordering thing? By default, pointer events trigger on objects "top-down". So if you have an entity that is above a background layer, the entity will receive the pointer event first, and can choose whether that event propagates to entities and layers below it. The event propagation model is similar to the capture phase in W3C events. If you want to prevent propagation, your event handler just needs to return false. 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.