nativescript-community / ui-drawer

NativeScript plugin that allows you to easily add a side drawer (side menu) to your projects.
https://nativescript-community.github.io/ui-drawer/
Apache License 2.0
24 stars 12 forks source link

Backdrop ignoreTouchAnimation #28

Closed MrSnoozles closed 11 months ago

MrSnoozles commented 11 months ago

I have global tap animations enabled and noticed, that they will also apply to the backdrop of the modal.

drawer

I tried disabling them using the ignoreTouchAnimation="true" attribute on the drawer, but that didn't have any effect. Is there a way to disable the touch animations?

Which platform(s) does your issue occur on?

Versions

Code to enable global touch animations

import { TouchManager, CoreTypes } from '@nativescript/core'

TouchManager.enableGlobalTapAnimations = true
TouchManager.animations = {
    down: {
        scale: { x: 0.95, y: 0.95 },
        duration: 200,
        curve: CoreTypes.AnimationCurve.easeInOut
    },
    up: {
        scale: { x: 1, y: 1 },
        duration: 200,
        curve: CoreTypes.AnimationCurve.easeInOut
    }
}
farfromrefug commented 11 months ago

@MrSnoozles should be working in latest

MrSnoozles commented 11 months ago

It's working in the latest version. Muchas gracias.