How can this be done?
The second block has jScrollPane connected, it has vertical and horizontal scrolling.
When scrolling this block horizontally, it is necessary that the first block also scrolls after it. How can this be done?
The jScrollPane script to the first block is not an option, since horizontally it is static.
$(function() { var block1 = $('.jspPane'); console.log(block1); var block2 = $('.event-time__time'); console.log(block2); block1.onscroll = function() { block2.scrollTop = block1.scrollTop; block2.scrollLeft = block1.scrollLeft; }; });