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

[Chrome] Use 'TouchEvent constructor' instead of 'TouchEvent.initTouchEvent' #1997

Open
choniong opened this Issue Dec 17, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@choniong

choniong commented Dec 17, 2015

YUI uses 'TouchEvent.initTouchEvent' to simulate TouchEvent.

Currently Chrome is deprecating 'TouchEvent.initTouchEvent' and will remove in M53, developers are encouraged to use 'TouchEvent constructor' when available.

A monkey-patch for Y.Event.simulate could be

var oldSimulate = Y.Event.simulate;
Y.Event.simulate = function(target, type, options) {
    if (type.indexOf("touch") == 0 && TouchEvent.length) {
        target.dispatchEvent(new TouchEvent(type, options));
    } else {
        oldSimulate(target, type, options);
    }
}

Another sample for 'TouchEvent constructor' can he found here (under Developer resources).

@clarle

This comment has been minimized.

Show comment
Hide comment
@clarle

clarle Dec 17, 2015

Contributor

Hi @choniong,

The YUI Library is EOL and won't be taking any additional changes.

If you need any assistance with patching a YUI fork, please feel free to reach out to me at @clarler.

Contributor

clarle commented Dec 17, 2015

Hi @choniong,

The YUI Library is EOL and won't be taking any additional changes.

If you need any assistance with patching a YUI fork, please feel free to reach out to me at @clarler.

@AMaini503

This comment has been minimized.

Show comment
Hide comment
@AMaini503

AMaini503 Mar 2, 2016

@clarle Is this repo under development ? Are the issues being worked upon ?

AMaini503 commented Mar 2, 2016

@clarle Is this repo under development ? Are the issues being worked upon ?

@clarle

This comment has been minimized.

Show comment
Hide comment
@clarle

clarle Mar 2, 2016

Contributor

Hi @AMaini503,

The YUI Library is no longer under active development, since Yahoo is no longer supporting YUI.

There's more information in the blog post below:

https://yahooeng.tumblr.com/post/96098168666/important-announcement-regarding-yui

Let me know if you have any other questions.

Contributor

clarle commented Mar 2, 2016

Hi @AMaini503,

The YUI Library is no longer under active development, since Yahoo is no longer supporting YUI.

There's more information in the blog post below:

https://yahooeng.tumblr.com/post/96098168666/important-announcement-regarding-yui

Let me know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment