Implement bidirectional scrolling