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

196
Views
Fabric.js: Deactivate all canvas events

I have an issue with deactivating all canvas events in fabric.js. I have in my application two ways where the canvas-data come from. The first way is directly through the localStorage and the other way is through a GET-Request to the Server.

At the first way the function which deactivate the canvas events is working. But on the second way not. I haven't a clue why it is so.

The Canvas-Data from both ways are the same. I can't find any difference.

This is my Function to deactivate the canvas-events:

function deactivateCanvasEvents(canvas){
    canvas.forEachObject(object => {
        object.selectable = false;
        object.evented = false;
    });
}

I've debugged it already and have seen that on the second way the function forEachObject doesn't get executed and no objects existing although the objects are on the canvas.

Have anyone an idea how i can solve it?

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!