mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Use builtin colors for vanilla biomes
This commit is contained in:
@@ -46,8 +46,8 @@ export const BiomeSourcePreview = ({ data, shown }: BiomeSourceProps) => {
|
||||
})
|
||||
|
||||
useOnDrag(canvas.current, (dx, dy) => {
|
||||
const x = dx * canvas.current.width / canvas.current.clientWidth
|
||||
const y = dy * canvas.current.height / canvas.current.clientHeight
|
||||
const x = dx * 200 / canvas.current.clientWidth
|
||||
const y = dy * 200 / canvas.current.clientHeight
|
||||
offset.current = [offset.current[0] + x, offset.current[1] + y]
|
||||
redraw.current()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user