The issue is resolved when I build the app in release mode. Debug mode was causing performance overhead, but switching to release mode fixed the lag and improved scrolling performance significantly.