Viewport drag behavior issue

Hi JUCE masterminds,

I’m facing a issue with viewport.

Basically I have a horizontal viewport to diplay many items with setScrollOnDragEnabled (true). My problem is that it works alright in standalone plugin. But when I test the AU/VST plugin generated from the same code, the dragging operation would show a horizontal “bouncing” effect at the leftmost and rightmost boundary. For instance, when I to drag my mouse to the right direction when the leftmost item has already touched the boundary, the viewport will bounce to the right direction when I release my mouse outside the viewport area. This won’t happen in standalone plugin.

How to remove the bouncing effect?