Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactions v4.1.0 #3167

Closed
hendrysadrak opened this issue Oct 20, 2016 · 18 comments
Closed

Interactions v4.1.0 #3167

hendrysadrak opened this issue Oct 20, 2016 · 18 comments
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release. 💾 v4.x (Legacy) Legacy version 4 support

Comments

@hendrysadrak
Copy link

PIXI 4.1.0 Interactions don't work in Chrome 55.0.2882.0 MacOS Sierra. Works fine in FIrefox. Can't click, though cursor shows as pointer, but on clicking nothing happens. Mouseover and mouseout work fine.

Ex. http://pixijs.github.io/examples/#/demos/interactivity.js even here it doesn't work. No errors.

@hendrysadrak
Copy link
Author

Updated to Chrome 55.0.2883.18, still doesn't work. Also using PIXI 4.0.3 everything works as expected.

@hendrysadrak
Copy link
Author

Copied the example from http://pixijs.github.io/examples/#/basics/click.js and made a codepen to log mouse events http://codepen.io/hendrysadrak/pen/JRZmqa

@hendrysadrak
Copy link
Author

hendrysadrak commented Oct 20, 2016

Found a fix, also had to listen for pointerdown. So now, for every sprite i want to make clickable on desktop and mobile, i have to listen for mousedown, pointerdown & touchstart? Having 3 lines for a simple click event listening seems excessive.
image

EDIT on image touchdownshould be touchstart sry.

@themoonrat
Copy link
Member

if you use pointerdown, you don't need to use mousedown or touchdown at all.

@Jorisslagter
Copy link

I'd witnessed this same issue my self, trying to updating PIXI 3.10 to PIXI 4.1. But in my opinion it has something to do with the drawing order. Some buttons work normally, but other (maybe because they where drawn later?) don't have the pointer cursor when hovered over with the mouse and don't react to click events.

@sopilkar
Copy link

Chrome 53.0.2785.143 (64-bit) Mac OS X 10.9.5
Ver 4.1.0
No 'mousedown'/'mouseup' events. 'pointerdown' didn't help.
With ver 4.0.3 it was worked perfect.

Unfortunately we need to roll back to ver. 4.0.3

@kaansoral
Copy link

This might be related too: #3158

But I couldn't debug it myself, as it happened to players

My solution was to roll back to 4.0.2, I was on a 4.0.3/dev version (not 4.0.3 release), so the issue I linked was introduced after 4.0.2 - Haven't tried 4.0.3 as I was already occupying the player's time for over an hour by then

@Excaa
Copy link

Excaa commented Oct 26, 2016

Happens also on Chrome canary version 56.0.2900.0 (64-bit), Internet Explorer 11 version 11.321.14393.0 and Edge 38.14393.0.0.

Works on firefox.

@staff0rd
Copy link
Collaborator

Thought I wasn't seeing this anywhere, turned out I'd just been testing on touch devices only, which are not affected. Confirmed this fails on Chome Version 55.0.2883.28 beta (64-bit), Win10.

I swapped out all my mouse* and touch* events for pointer* events and this was resolved.

@englercj
Copy link
Member

Should be fixed now with the merge of #3233.

@SeminYun
Copy link

SeminYun commented Nov 3, 2016

this is not resolved..

chrome 56.0.2896. 64-bit is not working with recent version that update on master 2 days ago

@kaansoral
Copy link

I also reported the same issue, but the update was 4.1.1, it doesn't include the fix yet :(

Have you checked: http://pixijs.download/dev/pixi.js

@englercj englercj added 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. Plugin: Interaction Manager 💾 v4.x (Legacy) Legacy version 4 support labels Nov 6, 2016
@guzey
Copy link

guzey commented Oct 27, 2017

In Chrome 62.0.3202.75 "mousedown" works and "pointerdown" doesn't work. Does anybody else have the same issue?

@ststaynov
Copy link

Same here, any feedback on this?

@staff0rd
Copy link
Collaborator

staff0rd commented Jun 11, 2018

Need more information. I have pointer* events firing fine in Chrome 67.0.3396.79, Windows 10, pixi.js 4.8.1.

@ststaynov
Copy link

ststaynov commented Jun 11, 2018

@staff0rd this is my case. I want to bind an event to the stage so that I make a horizontally draggable website. I figured it would be easier to bind the event on the stage rather than on any other object.

this.stage = new PIXI.Container();
stage.on('mousedown', onDragStart) // working
         .on('pointerdown', onDragStart); // not working

@staff0rd
Copy link
Collaborator

staff0rd commented Jun 16, 2018

Looks like i'm getting both here; https://codepen.io/staff0rd/pen/eKGapp?editors=0010, are you not?

image

@lock
Copy link

lock bot commented Jun 16, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release. 💾 v4.x (Legacy) Legacy version 4 support
Projects
None yet
Development

No branches or pull requests