-
-
Save andreibosco/fa6b32d0cefe574d0224 to your computer and use it in GitHub Desktop.
Revisions
-
1forh revised this gist
Jan 12, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,10 +4,10 @@ // Prevent map zoom on scroll // Enable the pointer events only on click // Disable pointer events on doc ready $('#map_canvas').addClass('scroll-off'); // Enable pointer events on #map_wrapper click $('#map_wrapper').on('click', function () { $('#map_canvas').removeClass('scroll-off'); }); -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,6 @@ $('#map_wrapper').on('click', function () { }); // Disable pointer events when the mouse leaves #map_canvas $("#map_canvas").mouseleave(function () { $('#map_canvas').addClass('scroll-off'); }); -
1forh revised this gist
Jan 12, 2016 . No changes.There are no files selected for viewing
-
1forh revised this gist
Jan 12, 2016 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,18 @@ // Iframe ID set to #map_canvas // Prevent map zoom on scroll // Enable the pointer events only on click // Set the pointer events to none on doc ready $('#map_canvas').addClass('scroll-off'); // Set the pointer events true on click $('#map_wrapper').on('click', function () { $('#map_canvas').removeClass('scroll-off'); }); // Disable pointer events when the mouse leaves #map_canvas // Set the pointer events to none when mouse leaves #map_canvas $("#map_canvas").mouseleave(function () { $('#map_canvas').addClass('scroll-off'); }); -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ // Iframe wrapper ID set to #map_wrapper // Iframe ID set to #map_canvas // Prevent map zoom on scroll -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ // Prevent map zoom on scroll // you want to enable the pointer events only on click; $('#map_canvas').addClass('scroll-off'); // set the pointer events to none on doc ready $('#map_wrapper').on('click', function () { $('#map_canvas').removeClass('scroll-off'); // set the pointer events true on click }); -
1forh revised this gist
Jan 12, 2016 . 3 changed files with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ <div id="map_wrapper"> <iframe id="map_canvas"></iframe> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,11 @@ // Prevent map zoom on scroll // you want to enable the pointer events only on click; $('#map_canvas').addClass('scrolloff'); // set the pointer events to none on doc ready $('#map_wrapper').on('click', function () { $('#map_canvas').removeClass('scroll-off'); // set the pointer events true on click }); // you want to disable pointer events when the mouse leave the canvas area; $("#map_canvas").mouseleave(function () { $('#map_canvas').addClass('scroll-off'); // set the pointer events to none when mouse leaves the map area }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ .scroll-off { pointer-events: none; } -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <div id="full-map"> <iframe id="map_canvas"></iframe> </div> -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ .scrolloff { pointer-events: none; } -
1forh revised this gist
Jan 12, 2016 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,14 @@ // Set iframe wrap with an ID of #full-map // Iframe ID set to #map_canvas // Prevent map zoom on scroll // you want to enable the pointer events only on click; $('#map_canvas').addClass('scrolloff'); // set the pointer events to none on doc ready $('#full-map').on('click', function () { $('#map_canvas').removeClass('scrolloff'); // set the pointer events true on click }); // you want to disable pointer events when the mouse leave the canvas area; $("#map_canvas").mouseleave(function () { $('#map_canvas1').addClass('scrolloff'); // set the pointer events to none when mouse leaves the map area }); -
1forh revised this gist
Dec 3, 2015 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ // Set iframe wrap with an ID of #full-map // Iframe ID set to #map_canvas1 // Prevent map zoom on scroll // you want to enable the pointer events only on click; $('#map_canvas1').addClass('scrolloff'); // set the pointer events to none on doc ready -
1forh created this gist
Dec 3, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ // Prevent map zoom on scroll // you want to enable the pointer events only on click; $('#map_canvas1').addClass('scrolloff'); // set the pointer events to none on doc ready $('#full-map').on('click', function () { $('#map_canvas1').removeClass('scrolloff'); // set the pointer events true on click }); // you want to disable pointer events when the mouse leave the canvas area; $("#map_canvas1").mouseleave(function () { $('#map_canvas1').addClass('scrolloff'); // set the pointer events to none when mouse leaves the map area });