Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery UI Draggable scrollSensitivity Option

  • Last Updated : 10 Mar, 2021

jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Draggable helper Option is used to set the distance in pixels from the edge of the viewport after which the viewport should scroll. It is a relative distance from the pointer. If the scroll option is set to false, then this option will not work.


$( ".selector" ).draggable({
    scroll: boolean,
    scrollSensitivity: value

CDN Link: First, add jQuery UI scripts needed for your project.

<link rel=”stylesheet” href=”//”>
<script src=”//”></script>
<script src=”//”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href=
    <script src=
    <script src=
        h1 {
            color: green;
        #div_element {
            width: 150px;
            height: 150px;
            background: green;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
    <h3>jQuery UI Draggable scrollSensitivity Option</h3>
    <div id="div_element">Div content</div>
        $(function () {
                scroll: true,
                scrollSensitivity: 100



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!