SlideMenuControllerSwift icon indicating copy to clipboard operation
SlideMenuControllerSwift copied to clipboard

TableView disable scrolling when closing menu

Open JurajB opened this issue 10 years ago • 6 comments

Hi is it possible to disable scrolling of table view in left menu when i am closing it with pan gesture? Because when i have table view inside left menu it looks funny when i scroll left and up slightly.

Cheers

JurajB avatar Apr 21 '16 14:04 JurajB

Do you want to disable the pan gesture?

Pluto-Y avatar Apr 21 '16 14:04 Pluto-Y

I want to keep pan gesture but i want to disable any movement in menu when it is "panning" away. I dont know how to do it without making scrolling inside menu miserable.

JurajB avatar Apr 22 '16 13:04 JurajB

Do you mean this? SlideMenuOptions.simultaneousGestureRecognizers = false

lainara6-zz avatar Jun 30 '16 03:06 lainara6-zz

Have you also tried to keep a specific position in tableview when closing and reopening left menu?

termic avatar Aug 01 '16 12:08 termic

if sender.state == UIGestureRecognizerState.Began { slideMenuController()?.removeLeftGestures() slideMenuController()?.removeRightGestures() print("You Start pan")

    }
    if sender.state == UIGestureRecognizerState.Ended {
        slideMenuController()?.addLeftGestures()
        slideMenuController()?.addRightGestures()
        print("You end pan")
    }

give your table view ui pan gesture, and the code from above do the trick.

ReFiRnE avatar Aug 18 '16 18:08 ReFiRnE

@LayChannara Thanks for help. SlideMenuOptions.simultaneousGestureRecognizers = false. Its working for me to disable multiple scrolling while scroll the tableview

nikunjazilen avatar Sep 05 '18 13:09 nikunjazilen