Skip to content

Commit 0d5e400

Browse files
authored
Merge pull request alvarotrigo#2378 from qertis/master
fullPage without jQuery some fixes
2 parents a264f9c + 7c4da64 commit 0d5e400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pure javascript (Alpha)/javascript.fullPage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
module.exports = factory(window, document);
1818
} else {
1919
// Browser globals.
20-
root.fullpage = factory(window, document);
20+
window.fullpage = factory(window, document);
2121
}
2222
}(this, window, document, function(window, document, undefined){
2323
'use strict';
@@ -1007,7 +1007,7 @@
10071007
*/
10081008
function touchMoveHandler(event){
10091009

1010-
var e = window.event || e || e.originalEvent;
1010+
var e = window.event || event || event.originalEvent;
10111011

10121012
if(isReallyTouch(e)){
10131013
if(options.autoScrolling){
@@ -1066,7 +1066,7 @@
10661066
* Handler for the touch start event.
10671067
*/
10681068
function touchStartHandler(event){
1069-
var e = window.event || e || e.originalEvent;
1069+
var e = window.event || event || event.originalEvent;
10701070

10711071
//stopping the auto scroll to adjust to a section
10721072
if(options.fitToSection){
@@ -1754,7 +1754,7 @@
17541754
* Scrolls to the given section and slide
17551755
*/
17561756
function scrollPageAndSlide(destiny, slide){
1757-
var section = getSectionByAnchor(destiny);
1757+
var section = getSectionByAnchor(decodeURI(destiny));
17581758

17591759
if (typeof slide === 'undefined') {
17601760
slide = 0;

0 commit comments

Comments
 (0)