Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 27a4c5f

Browse files
committed
Fixed issue with nav height
Closes #35
1 parent 1e6b29c commit 27a4c5f

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-offcanvas",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"authors": [
55
"Phil Hughes <me@iamphill.com>"
66
],

dist/js/bootstrap.offcanvas.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/bootstrap.offcanvas.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "offcanvas-bootstrap",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"author": {
55
"name": "Phil Hughes",
66
"url": "http://www.iamphill.com"

src/coffee/bootstrap.offcanvas.coffee

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
_touchStart: (e) =>
5252
@startX = e.originalEvent.touches[0].pageX
5353

54-
# Change the height of the offcanvas on touch start
55-
@element.height $(window).outerHeight()
54+
if @element.is '.in'
55+
# Change the height of the offcanvas on touch start
56+
@element.height $(window).outerHeight()
5657

5758
# Private: Touch move
5859
#

0 commit comments

Comments
 (0)