Comments (5)
It seems that this is the problem with a mask. I'm not familiar with react, nor with that one lib, but digging briefly through the code, it seems that the mask is used with eraser function.
Since you don't have an erasing element on your canvas, but "Undo" button instead, you could remove mask
attribute from #react-sketch-canvas
element to show whole canvas without that mask. For me it solves the problem on Firefox.
vokoscreenNG-2023-03-02_06-32-33.mp4
from scribble-diffusion.
This Greasemonkey script serves as a workaround on a client's side, but if added serverside, it can temporary solve the problem till the full-fledged fix :P
// ==UserScript==
// @name scribblediffusion canvas temp fix
// @description Removes mask attr from canvas element for proper view in firefox
// @match https://scribblediffusion.com/
// @version 1.0.0
// ==/UserScript==
window.addEventListener('load', function () {
var canvas_with_mask = document.querySelector("#react-sketch-canvas__stroke-group-0");
canvas_with_mask.removeAttribute("mask");
})
from scribble-diffusion.
I would love help from the community on this one!
from scribble-diffusion.
I can verify that the script @scsmash3r gave fixes the issue.
from scribble-diffusion.
Nice work! Thanks for your help on this.
https://twitter.com/zeke/status/1631507015863517184
from scribble-diffusion.
Related Issues (20)
- Whole page moving randomly on android
- REPLICATE_API_TOKEN not found
- Unhandled Runtime Error HOT 1
- Integration in stable diffusion HOT 1
- Using Scribble Diffusion with Automatic1111
- Not able to set it up locally HOT 1
- Unable to generate image HOT 1
- Unable to generate image in Safari HOT 3
- 500 Server Error!! HOT 1
- error API request failed: Unprocessable Entity HOT 4
- createPrediction error HOT 3
- retrieve old scribbles from scribblediffusion.com (03/2023) error 500
- Не можливо малювати HOT 1
- Cat
- Beautiful house and nature
- Horse HOT 3
- Mi infancia
- Invalid webhook URL HOT 1
- Clases de matematicas
- Sola
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scribble-diffusion.