js-scrollto

firefox scroll to animation is very laggy compared to chrome and safari

时光怂恿深爱的人放手 提交于 2019-12-13 03:48:00
问题 I have made a web page in React Js and one section as a lot of images which causes the scroll to run 1 fps making it a very bad user experience. The scroll works well both on safari and chrome so I can't understand why Firefox is so slow? It seems that Firefox generally is bad at rendering a lot of images at once. I used this code from this solution Cross browser JavaScript (not jQuery...) scroll to top animation css margin: 20px 10px 0 10px; width: 30%; min-width: 300px; background: #FFFFFF;

What is the difference between the different scroll options?

主宰稳场 提交于 2019-11-27 02:16:59
I have tried a few ways of adding scrolling to tables, but just one of them works correctly. What is the different between them? First: JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("arguments[0].scrollIntoView();", Element); Second: WebElement element1 = driver.findElement(By.id("scrolled_element")); ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element1); Third: JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("window.scrollBy(0,1000)"); Fourth: JavascriptExecutor js = (JavascriptExecutor) driver; js

What is the difference between the different scroll options?

安稳与你 提交于 2019-11-26 04:01:43
问题 I have tried a few ways of adding scrolling to tables, but just one of them works correctly. What is the different between them? First: JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript(\"arguments[0].scrollIntoView();\", Element); Second: WebElement element1 = driver.findElement(By.id(\"scrolled_element\")); ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", element1); Third: JavascriptExecutor js = (JavascriptExecutor) driver; js