Image hover not working for first time if image was clicked

Đang mở
#724 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
game-dev

Hướng nghiên cứu

Start by reading the Phaser input handling documentation and tracing how pixelPerfectOver and pixelPerfectClick interact on mobile after a click. Reproduce the sequence in the issue: click the image, move away, then hover it again, and compare when onInputOver fires. The issue does not name a file or test; done means the first hover after a click invokes the over handler on mobile.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

i am facing image hover issue in mobile devices.
i added pixelPerfectOver and pixelPerfectClick because i need over and click event both for png images

image.input.priorityID = 2;
image.input.pixelPerfectOver = true;
image.input.pixelPerfectClick = true;
image.events.onInputOver.add(onOver, this); 
image.events.onInputOut.add(onOverOut, this);

this works fine in browser but in mobile view or devices there is issue when you click on image then first time you hover the image over function will not call but if you hover out and then again hover the image over function will called.
why am i not able to call function for first time?
can anyone help me with this issue?
thank you.

Ngôn ngữ chính
JavaScript
Star
1.4k
Fork
485
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phaserjs/phaser-ce

Tất cả issue của phaserjs/phaser-ce

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.