dlegr250_material_design 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0709e5f17dd5506fa8824f737bce676f39c353e
|
4
|
+
data.tar.gz: f61c48d672baf28f9fd94b4577c79b3a7ed782fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca7f5bd60761a1bb96adc9a1670a5d23a215897c265e4b2d4f3ff0f7d1ef44f298208e885ce5b1e04620af78eaf4d92d76e4bd04354eaad7ecbd8400e69fcdb3
|
7
|
+
data.tar.gz: 6c6fd9318f1f62f816a9f1e97cd341ee637b5d33aa0bf742209f0137e4e7e3efa823d3b16c739e219c1325e42f5cb15750bcd8f05e780dbffeb1b45e3ea6ffc1
|
@@ -36,11 +36,13 @@ class App.MD.Layout
|
|
36
36
|
@.hideOverlay()
|
37
37
|
|
38
38
|
# Touch interaction require a #main area to trigger the actions.
|
39
|
+
# Tries to ensure swipe only happens from parent element.
|
39
40
|
if @$main.length > 0
|
40
41
|
if @$leftSidebar.length > 0
|
41
|
-
@$main.hammer({}).bind("swiperight", =>
|
42
|
-
if $(
|
43
|
-
|
42
|
+
@$main.hammer({}).bind("swiperight", (event) =>
|
43
|
+
if $(event.gesture.target).attr("id") == @$main.attr("id")
|
44
|
+
if $(window).width() < @$largeWidth
|
45
|
+
@.showLeftSidebar()
|
44
46
|
)
|
45
47
|
|
46
48
|
@$leftSidebar.hammer({}).bind("swipeleft", =>
|
@@ -49,8 +51,9 @@ class App.MD.Layout
|
|
49
51
|
|
50
52
|
if @$rightSidebar.length > 0
|
51
53
|
@$main.hammer({}).bind("swipeleft", =>
|
52
|
-
if $(
|
53
|
-
|
54
|
+
if $(event.gesture.target).attr("id") == @$main.attr("id")
|
55
|
+
if $(window).width() < @$largeWidth
|
56
|
+
@.showRightSidebar()
|
54
57
|
)
|
55
58
|
|
56
59
|
@$rightSidebar.hammer({}).bind("swiperight", =>
|