fix bug that displayLines not correct when useSwipe and showScrollbar