Skip to content

Kinetic event for movement from kinetic only #97

Description

@iamdriz

Is it possible to have an event that fires only when kinetic has been dragged?

Currently if I have:

$('.balls__bar').kinetic({
    cursor: 'default',
    x: true,
    y: false,
    moved: function(){
        ipc.send('projector', { func: 'scrollBallBar', params: [$('.stage-inner').width(), $('.balls__bar').scrollLeft()] });
    }
});

The moved event will fire if .balls__bar is scrolled by another means. I only want to catch kinetic movement by dragging!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions