File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def callback(instance, value):
137
137
from kivymd .elevationbehavior import RectangularElevationBehavior
138
138
from kivymd .list import ILeftBody
139
139
from kivymd .menus import MDDropdownMenu
140
+ from kivymd .navigationdrawer import NavigationLayout
140
141
from kivymd .theming import ThemableBehavior
141
142
142
143
Builder .load_string ('''
@@ -434,6 +435,13 @@ def on_touch_move(self, touch):
434
435
if self .collide_point (* touch .pos ) and self .swipe and \
435
436
not self ._card_shifted :
436
437
if touch .x < Window .width - 10 :
438
+ # When the Navigation panel is open and
439
+ # the list of its menu is scrolled,
440
+ # the event is also processed on the cards
441
+ for widget in Window .children :
442
+ if widget .__class__ is NavigationLayout :
443
+ if widget .state == 'open' :
444
+ return
437
445
self .shift_post_left ()
438
446
return super (MDCardPost , self ).on_touch_move (touch )
439
447
You can’t perform that action at this time.
0 commit comments