# Disable scroll in ion-content \[solved\]

**URL:** <https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272>\
**Category:** ionic-v3\
**Created:** [April 3, 2016, 11:42pm UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272 "2016-04-03T23:42:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ondonda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ondonda/32/98088_2.png) [@ondonda](https://forum.ionicframework.com/u/ondonda)\
**Post date:** [April 3, 2016, 11:42pm UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/1 "2016-04-03T23:42:57Z")

</div>

hi guys , how can i disable scroll in ion-content?  
scroll=“false” doesnt work thanks

---

<div class="post-metadata">

**Author:** ![kAy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kay/32/99120_2.png) [@kAy](https://forum.ionicframework.com/u/kAy)\
**Post date:** [April 4, 2016, 5:44am UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/2 "2016-04-04T05:44:12Z")

</div>

Normally that should work. But if that is not working try using ionicScrollDelegate in your controller.  
Here is a sample ;

```
$scope.disableVerticalScrolling = function() {
     console.log("disableVerticalScrolling");
     $ionicScrollDelegate.getScrollView().options.scrollingY = false;
     $window.localStorage["Scroll"] = JSON.stringify(false);
}

$scope.enableVerticalScrolling = function() {
     console.log("enableVerticalScrolling");
     $ionicScrollDelegate.getScrollView().options.scrollingY = true;
     $window.localStorage["Scroll"] = JSON.stringify(true);
}

```

Hope this helps…

---

<div class="post-metadata">

**Author:** ![ondonda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ondonda/32/98088_2.png) [@ondonda](https://forum.ionicframework.com/u/ondonda)\
**Post date:** [April 4, 2016, 6:04am UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/3 "2016-04-04T06:04:22Z")

</div>

hi, this look like as an ionic1 code, i’m looking for an ionic2 solution

---

<div class="post-metadata">

**Author:** ![kAy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kay/32/99120_2.png) [@kAy](https://forum.ionicframework.com/u/kAy)\
**Post date:** [April 4, 2016, 6:25am UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/4 "2016-04-04T06:25:21Z")

</div>

Well I have not used ionic 2 yet, but based on a quick research, maybe this will help :  
[http://ionicframework.com/docs/api/directive/ionContent/](http://ionicframework.com/docs/api/directive/ionContent/)

---

<div class="post-metadata">

**Author:** ![ondonda](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ondonda/32/98088_2.png) [@ondonda](https://forum.ionicframework.com/u/ondonda)\
**Post date:** [April 4, 2016, 6:27am UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/5 "2016-04-04T06:27:44Z")

</div>

```
::-webkit-scrollbar,
    *::-webkit-scrollbar {
      display: none;
    }

```

Works

my question is a duplicate please see [how to disable scroll in ion-content](https://forum.ionicframework.com/t/ionic-2-content/44147)

---

<div class="post-metadata">

**Author:** ![ejstepanian](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@ejstepanian](https://forum.ionicframework.com/u/ejstepanian)\
**Post date:** [July 6, 2016, 7:30pm UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/6 "2016-07-06T19:30:35Z")

</div>

```
    var stopScroll = function(){
        $('.scroll').addClass('no-scroll');
    }
    var startScroll = function(){
        $('.scroll').removeClass('no-scroll');
    }

```

.no-scroll{  
transform: none !important;  
}

---

<div class="post-metadata">

**Author:** ![welshcathy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/welshcathy/32/108479_2.png) [@welshcathy](https://forum.ionicframework.com/u/welshcathy)\
**Post date:** [April 20, 2017, 9:53am UTC](https://forum.ionicframework.com/t/disable-scroll-in-ion-content-solved/48272/7 "2017-04-20T09:53:29Z")

</div>

Answer found in this post  
[https://forum.ionicframework.com/t/how-to-disable-scroll-of-an-ion-content?source\_topic\_id=48272](https://forum.ionicframework.com/t/how-to-disable-scroll-of-an-ion-content?source_topic_id=48272)

.. incude fixed content
