Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRUM-8311:"fixed default anchor issue" #368

Closed
wants to merge 14 commits into from
18 changes: 18 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "arm-galleria",
"homepage": "https://github.com/apnarm/galleria",
"description": "arm modifications on galleria 1.4.2",
"main": [],
"moduleType": [],
"keywords": [
"galleria"
],
"license": "MIT",
"ignore": [
"node_modules",
"bower_components",
"test",
"tests"
],
"version": "1.4.3"
}
15 changes: 7 additions & 8 deletions src/galleria.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/**
* Galleria v 1.4.2 2014-08-07
* Galleria v 1.4.3 21-10-2015
* http://galleria.io
*
* Licensed under the MIT license
* https://raw.github.com/aino/galleria/master/LICENSE
*
*/

(function( $, window, Galleria, undef ) {
Expand Down Expand Up @@ -1088,17 +1087,17 @@ $.event.special['click:fast'] = {
}).on('touchstart.fast', function(e) {
window.clearTimeout($(this).data('timer'));
$(this).data('clickstate', {
touched: true,
touched: true,
touchdown: true,
coords: getCoords(e.originalEvent),
evObj: e
});
}).on('touchmove.fast', function(e) {
var coords = getCoords(e.originalEvent),
state = $(this).data('clickstate'),
distance = Math.max(
Math.abs(state.coords.x - coords.x),
Math.abs(state.coords.y - coords.y)
distance = Math.max(
Math.abs(state.coords.x - coords.x),
Math.abs(state.coords.y - coords.y)
);
if ( distance > 6 ) {
$(this).data('clickstate', $.extend(state, {
Expand All @@ -1113,7 +1112,7 @@ $.event.special['click:fast'] = {
}
$this.data('timer', window.setTimeout(function() {
$this.data('clickstate', def);
}, 400));
}, 500));
}).on('click.fast', function(e) {
var state = $(this).data('clickstate');
if ( state.touched ) {
Expand Down Expand Up @@ -2758,7 +2757,7 @@ Galleria.prototype = {

// legacy patch
if( s === false || s == 'disabled' ) { return false; }

return !!Galleria.TOUCH;

}( options.swipe ));
Expand Down
5 changes: 2 additions & 3 deletions src/plugins/history/galleria.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Galleria.History = (function() {
get = function( winloc ) {
if( iframe && !support && Galleria.IE ) {
winloc = winloc || iframe.location;
} else {
winloc = loc;
} else {
iframe.location;
}
return parseInt( winloc.hash.substr(2), 10 );
},
Expand Down Expand Up @@ -143,4 +143,3 @@ Galleria.History = (function() {
}());

}( jQuery, this ));