Skip to content

Commit 6dbbfab

Browse files
committed
fixed clicking on panels
1 parent da33060 commit 6dbbfab

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
(Only the most recent changes are shown below, see the [wiki page](https://github.com/chriscoyier/MovingBoxes/wiki/Change-Log) for a complete listing)
1212

13+
###Version 2.2.1 (11/10/2011)
14+
* Clicking on panels will now work properly. Fix for [issue #44](https://github.com/chriscoyier/MovingBoxes/issues/44).
15+
1316
###Version 2.2 (11/9/2011)
1417
* Modified `wrap` option to now behave like an infinite slider
1518
* When `true`, the first and last MovingBoxes panels are cloned and attached to either end of the slider.

js/jquery.movingboxes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Moving Boxes v2.2
2+
* Moving Boxes v2.2.1
33
* by Chris Coyier
44
* http://css-tricks.com/moving-boxes/
55
*/
@@ -53,7 +53,7 @@
5353

5454
// go to clicked panel
5555
base.$el.delegate('.mb-panel', 'click', function(){
56-
base.change( base.$panels.index($(this)) + 1 );
56+
base.change( base.$panels.index($(this)) + base.adj );
5757
});
5858

5959
// Activate moving box on click or when an internal link obtains focus

js/jquery.movingboxes.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)