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

Correct event listeners for mobile vtt thumbnails #184

Merged
merged 1 commit into from Jun 1, 2018

Conversation

Projects
None yet
3 participants
@cian-exads
Collaborator

cian-exads commented May 28, 2018

No description provided.

@gibigate

This comment has been minimized.

Contributor

gibigate commented May 28, 2018

maybe add some global function like:

var evType = function(eventName) {
    if(device.is_touch()) {
        if(eventName==='click' || eventName==='mousedown') {
            eventName = 'touchstart';
        }
        if(eventName==='mousemove') {
            eventName = 'touchmove';
        }
        if(eventName==='mouseup' || eventName==='mouseout') {
            eventName = 'touchend';
        }
    }
    return eventName;
};

@golikov golikov changed the base branch from master to release_candidate Jun 1, 2018

@golikov golikov merged commit aac1b8d into release_candidate Jun 1, 2018

@golikov golikov deleted the ESR-2611 branch Jun 1, 2018

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