Skip to content

Making it work in ST 2.2.1 #5

@tralves

Description

@tralves

Hi!

Thanks for the awesome menu! I am using ST 2.2.1 and had to make a couple of changes, both in controller/MainContainer.js

  1. line 55:
var velocity  = Math.abs(e.deltaX / (e.timeStamp - e.startTime)),

Apparently e.deltaTime no longer exists.

  1. line 70:
this.moveContainer(offset.x,100);

If you don't add a duration to the animation, the animation doesn't occur and the animation listeners (ln. 161) don't fire.

I forked/branched this project with my changes here.

If you want me to pull request, say so.

Again, thanks!
Tiago

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