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 +4 -4
- data/app/assets/javascripts/hooch.js +1 -26
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 584beed1dc2f45bd0862a5d09c496f3e3642943d
|
4
|
+
data.tar.gz: fda6ef758f27d76e3daf3658e8c206d7f54f7e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|