Updated logic to fix the scrolled drag issues.