@nativescript-community/ui-drawer 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.35](https://github.com/nativescript-community/ui-drawer/compare/v0.0.34...v0.0.35) (2022-04-14)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-drawer
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.0.34](https://github.com/nativescript-community/ui-drawer/compare/v0.0.33...v0.0.34) (2022-04-11)
7
15
 
8
16
 
package/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export declare class Drawer extends GridLayout {
46
46
  topClosedDrawerAllowDraging: boolean;
47
47
  panGestureHandler: PanGestureHandler;
48
48
  gestureEnabled: boolean;
49
+ backdropTapGestureEnabled: boolean;
49
50
  private isPanning;
50
51
  private isAnimating;
51
52
  private prevDeltaX;
package/index.js CHANGED
@@ -87,6 +87,7 @@ let Drawer = class Drawer extends GridLayout {
87
87
  this.bottomClosedDrawerAllowDraging = true;
88
88
  this.topClosedDrawerAllowDraging = true;
89
89
  this.gestureEnabled = true;
90
+ this.backdropTapGestureEnabled = true;
90
91
  this.isPanning = false;
91
92
  this.isAnimating = false;
92
93
  this.prevDeltaX = 0;
@@ -105,7 +106,9 @@ let Drawer = class Drawer extends GridLayout {
105
106
  this.insertChild(this.backDrop, 0);
106
107
  }
107
108
  onBackdropTap() {
108
- this.close();
109
+ if (this.backdropTapGestureEnabled) {
110
+ this.close();
111
+ }
109
112
  }
110
113
  initGestures() {
111
114
  const manager = Manager.getInstance();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-drawer",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "Easily add a side drawer (side menu) to your projects.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -54,5 +54,5 @@
54
54
  "dependencies": {
55
55
  "@nativescript-community/gesturehandler": "^2.0.3"
56
56
  },
57
- "gitHead": "d4bdfdfe1179ce2375c4f4c6b2edf8b83626fb16"
57
+ "gitHead": "c43d340cb3fec8cd3e4a9245b16a81bb8e1ac40c"
58
58
  }