# Custom Viewport DragToScroll behaviour

**URL:** <https://forum.juce.com/t/custom-viewport-dragtoscroll-behaviour/18400>\
**Category:** General JUCE discussion\
**Created:** [July 12, 2016, 4:50pm UTC](https://forum.juce.com/t/custom-viewport-dragtoscroll-behaviour/18400 "2016-07-12T16:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyjtb](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@andyjtb](https://forum.juce.com/u/andyjtb)\
**Post date:** [July 12, 2016, 4:50pm UTC](https://forum.juce.com/t/custom-viewport-dragtoscroll-behaviour/18400/1 "2016-07-12T16:50:34Z")

</div>

Hey Everyone,

I’m looking to implement a more native feel for the drag scrolling of a Viewport

I’ve made a couple of changes to Viewport to allow custom `DragToScrollListener`s to be used  
I’ve only implemented a very simple change so far, where the current scrolling action is cancelled on mouseDown, my plan was to continue with the “Material”-esque blob that appears at the top of the view when you’re trying to scroll past the top

But I was wondering if anyone had any experience with doing similar?  
I feel like having to edit Viewport isn’t ideal, maybe I’ve missed something obvious?

---

<div class="post-metadata">

**Author:** ![fred](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fred/32/1773_2.png) [@fred](https://forum.juce.com/u/fred)\
**Post date:** [February 10, 2017, 4:46pm UTC](https://forum.juce.com/t/custom-viewport-dragtoscroll-behaviour/18400/2 "2017-02-10T16:46:23Z")

</div>

That would be really cool indeed, any feedback? 🐵

---

<div class="post-metadata">

**Author:** ![fred](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fred/32/1773_2.png) [@fred](https://forum.juce.com/u/fred)\
**Post date:** [February 10, 2017, 4:59pm UTC](https://forum.juce.com/t/custom-viewport-dragtoscroll-behaviour/18400/3 "2017-02-10T16:59:23Z")

</div>

To be more clear why I need it: the default scroll behaviour cannot meet the fine-tuning need for the high quality experience on a mobile touch platform we’re after
