Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

351
Views
Automatically trigger scroll in Monaco Editor

I am working on a Monaco editor to automatically trigger scroll events. So far example if I press 'a' then it will automatically trigger scrolling until another key is pressed. The code works fine in a plain html page but when monaco editor is used it is not working. This is the code in jsfiddle.

    var speed = 100;
    function pageScroll() {
        if(speed == 0) return;
        document.getElementById("container").scrollBy(0,50); 
        setTimeout('pageScroll()',speed);
    }

Full code on jsfiddle

https://jsfiddle.net/L7uekp2b

Can anyone suggest me what's wrong with the code.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!