dlegr250_material_design 0.1.7 → 0.1.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afe3a2d080e1183a217de03a7355268edbd98e5b
4
- data.tar.gz: 79879f77202e11149b0e5bbba36da17bc5fd1f38
3
+ metadata.gz: b0709e5f17dd5506fa8824f737bce676f39c353e
4
+ data.tar.gz: f61c48d672baf28f9fd94b4577c79b3a7ed782fe
5
5
  SHA512:
6
- metadata.gz: 5c57a02a0928c524cbc4060eec1551602de34c5dbab1f71c51ed4def0b0c39e04a395ef1d969b1a2d77f6f7da6191b931a7acf10bb278f7554b0eea0093bef66
7
- data.tar.gz: b136d21288b4b3390b496b266c25d3ae9f909f8e5ccb7e6b50c2ac84fa2c296dbdb0008d4c0415d4a17b2f621d78b6c8c6fd4d025d9c994486e4a46ff277c348
6
+ metadata.gz: ca7f5bd60761a1bb96adc9a1670a5d23a215897c265e4b2d4f3ff0f7d1ef44f298208e885ce5b1e04620af78eaf4d92d76e4bd04354eaad7ecbd8400e69fcdb3
7
+ data.tar.gz: 6c6fd9318f1f62f816a9f1e97cd341ee637b5d33aa0bf742209f0137e4e7e3efa823d3b16c739e219c1325e42f5cb15750bcd8f05e780dbffeb1b45e3ea6ffc1
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -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 $(window).width() < @$largeWidth
43
- @.showLeftSidebar()
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 $(window).width() < @$largeWidth
53
- @.showRightSidebar()
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", =>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand