Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. chang
    C
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    chang

    @chang

    0
    Reputation
    4
    Posts
    721
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    chang Follow

    Posts made by chang

    • when poppage will cause parent page which in the tabbar blinking

      i don’t know how to avoid blink happend,
      finally i do this way…

                          navigator.addEventListener('prepush', function (event) {
                                  $(tabbar).invisible();
                          });
      
                          navigator.addEventListener('postpop', function (event) {
                                  setTimeout(function () {
                                      $(tabbar).visible();
                                  }, 1);
                          });
      

      it’s not perfect, but acceptable to me, is there any other solution??

      posted in Onsen UI
      C
      chang
    • RE: Make ons-tabbar swipe on one axis only

      https://community.onsen.io/topic/3030/how-to-reduce-tab-swipe-sensitive-when-scrolling/2

      maybe this would help

      posted in Onsen UI
      C
      chang
    • RE: how to reduce tab swipe sensitive when scrolling

      hi Fran Diox

      i just fix this problem by using jquery.touchSwipe lib,
      i disabled the tab swipe, and use jquery.touchSwipe to trigger like this…

          $(page).swipe({
              swipe: function (event, direction, distance, duration, fingerCount) {
                      if (direction === 'right' && tabbar.getActiveTabIndex() > 0) {
                          tabbar.setActiveTab(tabbar.getActiveTabIndex() - 1);
                      }
                      else if (direction === 'left' && tabbar.getActiveTabIndex() < 4) {
                          tabbar.setActiveTab(tabbar.getActiveTabIndex() + 1);
                      }
              },
              allowPageScroll: 'vertical'
          });
      

      i will try your way later,
      thank you. :smiley:

      posted in Onsen UI
      C
      chang
    • how to reduce tab swipe sensitive when scrolling

      when i scrolling a tab page, it always trigger swipe.
      can anyone tell me how to reduce tab swipe sensitive when scrolling?
      sorry about my poor english, i really need to fix this problem, thanks.

      posted in Onsen UI
      C
      chang