GithubHelp home page GithubHelp logo

Comments (8)

viezel avatar viezel commented on July 21, 2024

Have a look at the v.1.1.2 760a518

from nappdrawer.

nubu avatar nubu commented on July 21, 2024

Nice One 👍

from nappdrawer.

nubu avatar nubu commented on July 21, 2024

Hey,

after testing it - still not working. What am i doing wrong?

var test = NappDrawerModule.createDrawer({
leftWindow : leftWin,
centerWindow : centerWin,
rightWindow : rightWin,
closeDrawerGestureMode : NappDrawerModule.CLOSE_MODE_ALL,
openDrawerGestureMode : NappDrawerModule.OPEN_MODE_ALL,
showShadow : false, //no shadow in iOS7
leftDrawerWidth : leftDrawerWidth,
rightDrawerWidth : rightDrawerWidth,
top : 20
});

    test.addEventListener('windowDidOpen', function(e) {
        alert("Open");
    });

    test.addEventListener('windowDidClose', function(e) {
        alert("close");
    });
    test.open();

    test.addEventListener('windowDidOpen', function(e) {
        alert("Open");
    });

    test.addEventListener('windowDidClose', function(e) {
        alert("close");
    });

My quick test scenario (Thought maybe they are just working after opening the mainwindow, but it doesn't. Any idea?

from nappdrawer.

viezel avatar viezel commented on July 21, 2024

Why do you add the eventlisteners twice?

Try out the example code. That works.
Remember to clean before updating the module to a newer version.

from nappdrawer.

nubu avatar nubu commented on July 21, 2024

Hey,

tried the example and know what's wrong:

If you slide the window per gesture, the event does not fire. If you toggle it per function (right or left) it does fire the event correctly.

Hard to fix? on Android it works on both ways.

from nappdrawer.

timanrebel avatar timanrebel commented on July 21, 2024

I can confirm @nubu's issue

Expected result:

  • events are fired when toggling side windows
  • events are fired when opening/closing side windows by sliding them

Actual result:

  • events are fired when toggling side windows
  • events are NOT fired when opening/closing side windows by sliding them

(But thanks for adding them! Including the statusbar feature)

from nappdrawer.

viezel avatar viezel commented on July 21, 2024

I added the gesture events.
https://github.com/viezel/NappDrawer/releases/tag/1.1.4

from nappdrawer.

nubu avatar nubu commented on July 21, 2024

Thanks man :)

from nappdrawer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.