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

On Click Event is not reliable in CEF (not triggered recognized every time) #2897

Closed
Revyn112 opened this issue Dec 28, 2020 · 3 comments
Closed

Comments

@Revyn112
Copy link

Revyn112 commented Dec 28, 2020

Version

3.0.4

Reproduction link

https://jsfiddle.net/5zrqps3n/

Steps to reproduce

When using CEF in Game Engine, it seems that some clicks not get triggered every time.
Hard to reproduce out of game.

But it is a simple @click on a Button like in the minimal reproduction.

What is expected?

Click Event should be fired every single time.

What is actually happening?

Sometimes you need 2-5 clicks before the events is triggered.


Similar problems:
altmp/altv-issues#430
vuejs/vue#10366
#2862
vuejs/vue#11031

@Revyn112
Copy link
Author

Found something interesting here on CEF issue tracker: https://bitbucket.org/chromiumembedded/cef/issues/2749/osr-results-in-weird-eventtimestamp-values

@Xikun201
Copy link

Xikun201 commented Jan 3, 2021

The problem here is the good old event.timestamp which is not always working right in CEF browsers.
https://github.com/vuejs/vue-next/blob/master/packages/runtime-dom/src/modules/events.ts

// line 113
const timeStamp = e.timeStamp || _getNow()

// changed to
const timeStamp = _getNow()

This solved the problem for me. But in the end the original code seems correct if e.timestamp would work correctly in CEF browsers.

@HcySunYang
Copy link
Member

Fixed in #3501

@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants