Prevent Scroll/Swipe In Scrollable Element - Scroll Swipe Protection

Prevent Scroll/Swipe In Scrollable Element - Scroll Swipe Protection
File Size: Unknown
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Scroll Swipe Protection is a simple yet sometimes useful jQuery plugin that prevents scroll (desktop) and swipe (mobile) events on iframe and scrollable elements. For example, you're able to use this plugin to prevent mouse scroll and swipe gestures form zooming in/out a Google Map embedded using iframe element. Licensed under the Apache License, Version 2.0 (the "License");

How to use it:

1. Load both jQuery library and the Scroll Swipe Protection's script in your html document.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="jquery.scroll-swipe-protection.min.js"></script>

2. Activate the Scroll Swipe Protection on your iframe or scrollable element:

$('iframe').scrollSwipeProtection();

3. That's it. The plugin now protects the embeds from involuntary scroll interactions. And you will see a toggle button inside the iframe that can be used to turn the Scroll Swipe Protection on or off.  There are several useful options that you can pass through to customizethe Scroll Swipe Protection plugin.

$('iframe').scrollSwipeProtection({

  // create a div around each selected element
  createWrapper: false,

  // shows toggle button
  createButton: true,

  // 'scroll' or 'both'
  protectionToggleType: 'both',

  // If the value provided here is greater than 0, it will be interpreted as the waiting time in milliseconds for the cursor to keep hovering over the locked element before it gets unlocked. 
  // If it is less than or equal to 0, only a click / tap on the toggle button can unlock the element for interaction.
  hoverTimeoutMs: 1200,

  // options for toggle button
  toggleButtonPosition: 'top-right',
  toggleButtonColor: '#EEEEEE',
  toggleButtonHoverColor: '#CCCCCC',
  toggleButtonPadding: '10px 12px',
  toggleButtonImgSrcTouch: 'data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9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RyO2Jsb2NrLXByb2dyZXNzaW9uOnRiO3dyaXRpbmctbW9kZTpsci10Yjt0ZXh0LWFuY2hvcjpzdGFydDtiYXNlbGluZS1zaGlmdDpiYXNlbGluZTtjb2xvcjojMDAwMDAwO2ZpbGw6IzgwODA4MDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6Mi4yMzAwMDAwMjttYXJrZXI6bm9uZTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlO2ZvbnQtZmFtaWx5OlNhbnM7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpTYW5zIiAvPgogIDwvZz4KPC9zdmc+Cg==',
  toggleButtonImgHeight: '32px',
  toggleButtonImgWidth: '32px',

  // Callback functions
  onTSEnabled: null,
  onTSDisabled: null
  
});

This awesome jQuery plugin is developed by Sigma-90. For more Advanced Usages, please check the demo page or visit the official website.