Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ion-side-menu-content edge-drag-threshold is forgetful

$
0
0

@joidegn wrote:

I have sidemenus set up like so:
`









<ion-side-menu side="left" class="dark" expose-aside-when="large">                                                                                                                             
    <div>                                                                                                                                                                                      
        <div class="sidebar-header">                                                                                                                                                           
            <a href="#/main/account" menu-close><img class="sidebar-img-circle" ng-src="http://graph.facebook.com/{{fb_uid}}/picture"></a><br>                                                 
            <p>{{customer_name}}</p>                                                                                                                                                           
        </div><br>                                                                                                                                                                             
        <div class="list">                                                                                                                                                                     
            <a href="#/main/tab/dash" class="item" menu-close><i class="icon ion-android-home icon-lrg"></i>&nbsp; <span class="side-text">Home</span></a>                                     
            <a href="#/main/tab/request" class="item" menu-close><i class="icon ion-ios-calendar icon-lrg"></i>&nbsp; <span class="side-text">A Link</span></a>                            
            <a href="#/main/account" class="item" menu-close><i class="icon ion-ios-person icon-lrg"></i>&nbsp; <span class="side-text">A second Link</span></a>                                     
        </div>                                                                                                                                                                                 
        <div class="bar-dark list sidebar-bottom">                                                                                                                                             
            <a href="#/main/help" class="item" menu-close><i class="icon ion-android-options icon-lrg"></i>&nbsp; <span class="side-text">Settings</span></a>                                  
            <a href="#/main/help" class="item" menu-close><i class="icon ion-ios-help icon-lrg"></i>&nbsp; <span class="side-text">Help & FAQ</span></a>                                       
        </div>                                                                                                                                                                                 
    </div>                                                                                                                                                                                     
</ion-side-menu>

`

On the first view when the app is loaded everything (edge-drag-threshold) works as expected. On any consecutive view where drag-content is "true" edge-drag-threshold seems to be set to false i.e. dragging anywhere on the content makes it possible to slide open the side menu.

I tried a lot of things, among them setting $ionicSideMenuDelegate.edgeDragThreshold(true) at different locations in the code but nothing changes the described behaviour. I'd be very thankfull if someone would be able to give me a hint about how to debug this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>