Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Apr 12, 2016
1 parent 592f4c7 commit a3d63fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.3.2

- 592f4c7: revert iOS fix (it wasn't effective) - it should have fixed the repaint problems of fixed poppers during scroll
I'm still looking for a working fix.

## v0.3.1

- b0d77ff: don't apply x-placement attr if applyStyles modifier is disabled
Expand Down
8 changes: 4 additions & 4 deletions build/popper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 0.3.1
* @version 0.3.2
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
Expand Down Expand Up @@ -418,8 +418,8 @@
// NOTE: 1 DOM access here
_updateBound = this.update.bind(this);
root.addEventListener('resize', _updateBound);
// if the boundariesElement is window or the popper position is fixed, we don't need to listen for the scroll event
if (this._options.boundariesElement !== 'window' && this.state.position !== 'fixed') {
// if the boundariesElement is window we don't need to listen for the scroll event
if (this._options.boundariesElement !== 'window') {
var target = getScrollParent(this._trigger);
// here it could be both `body` or `documentElement` thanks to Firefox, we then check both
if (target === root.document.body || target === root.document.documentElement) {
Expand All @@ -438,7 +438,7 @@
Popper.prototype._removeEventListeners = function() {
// NOTE: 1 DOM access here
root.removeEventListener('resize', _updateBound);
if (this._options.boundariesElement !== 'window' && this.state.position !== 'fixed') {
if (this._options.boundariesElement !== 'window') {
var target = getScrollParent(this._trigger);
// here it could be both `body` or `documentElement` thanks to Firefox, we then check both
if (target === root.document.body || target === root.document.documentElement) {
Expand Down
4 changes: 2 additions & 2 deletions build/popper.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/popper.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "popper.js",
"version": "0.3.1",
"version": "0.3.2",
"description": "",
"main": "src/popper.js",
"scripts": {
Expand Down

0 comments on commit a3d63fc

Please sign in to comment.