hooch 0.15.21 → 0.15.22

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: b236356d057d3d944f5a436b88a96d0eb584def4
4
- data.tar.gz: bedf9af809a0508cd18213bcdb2dd8b0d3321270
3
+ metadata.gz: 584beed1dc2f45bd0862a5d09c496f3e3642943d
4
+ data.tar.gz: fda6ef758f27d76e3daf3658e8c206d7f54f7e47
5
5
  SHA512:
6
- metadata.gz: bd444bb4c4bba0a12508c10bbdde0516c845bc1612d2785fdb4970413e053d28d678ce37d6ed20a185a327d7862cadcc26e6e192eab0a1edba0e26f0c9c8c346
7
- data.tar.gz: 8eae97ff94827075d414f6bc4daafb5e0d49b21fc06bd59ec918f777b677ed7baf2ba29f2f4e40372ce78d8ead2602166a1aaedb18050f8c2996df58687f039f
6
+ metadata.gz: e585b419dd96204b169656a5667972eaa2c0bd07440f7cf09b1edd7b3e26f8332ebb5a96ae3590f4271846bdd36c97e74b652f3205c9c03803fe60622ff0bf4c
7
+ data.tar.gz: 8efd12a6aa93bdac04c49d8c127009522b5f68ae36498584c3219ea3ffe3c5a1e08e96d93192a97af3187e508fa4239b7af7669c70bd5d930835a90880667721
@@ -245,7 +245,7 @@ var initHooch = function(){
245
245
  },
246
246
  getContentWrapper: function(){
247
247
  this.$modal_wrapper = this.$modal_mask.find('#hooch-modal')
248
- this.$modal_element = $('<div/>', {id: 'hooch_content', style: 'position: relative; float: left;'})
248
+ this.$modal_element = $('<div/>', {id: 'hooch_content', style: 'position: relative; float: left; height: ' + (this.mask_height - 100) + 'px;'})
249
249
  this.$modal_wrapper.html(this.$modal_element)
250
250
  this.$modal_element.html(this.$modal_content)
251
251
  this.$modal_content.show()
@@ -268,34 +268,9 @@ var initHooch = function(){
268
268
  modal.old_height = $('body')[0].style.height
269
269
  modal.old_overflow = $('body')[0].style.overflow
270
270
  $('body').css({height: '100%',overflow: 'hidden'})
271
- $('body').on({
272
- 'mousewheel.hoochModalScroll DOMMouseScroll.hoochModalScroll': function(e) {
273
- if(($(e.target).attr('id') == 'hooch-content') || ($(e.target).parents('#hooch-content').length > 0)){
274
- var delta = e.originalEvent.wheelDelta
275
- new_scrolltop = $('#hooch-content').scrollTop() - delta
276
- $('#hooch-content').scrollTop(new_scrolltop)
277
- }
278
- e.preventDefault();
279
- }
280
- })
281
- if (window.addEventListener){ // older FF
282
- window.addEventListener('DOMMouseScroll', hooch.preventDefault, false)
283
- }
284
- window.onwheel = hooch.preventDefault; // modern standard
285
- window.onmousewheel = document.onmousewheel = hooch.preventDefault; // older browsers, IE
286
- window.ontouchmove = hooch.preventDefault; // mobile
287
- document.onkeydown = hooch.preventDefaultForScrollKeys;
288
271
  },
289
272
  enableScroll: function(){
290
273
  $('body').css({height: this.old_height, overflow: this.old_overflow})
291
- $('body').off('.hoochModalScroll')
292
- if (window.removeEventListener){
293
- window.removeEventListener('DOMMouseScroll', hooch.preventDefault, false);
294
- }
295
- window.onmousewheel = document.onmousewheel = null;
296
- window.onwheel = null;
297
- window.ontouchmove = null;
298
- document.onkeydown = null;
299
274
  }
300
275
  }),
301
276
  closeModal: function(){
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.15.21"
2
+ VERSION = "0.15.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.21
4
+ version: 0.15.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-13 00:00:00.000000000 Z
11
+ date: 2018-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails