zy-acs-flow/src/map/MapPage.jsx
@@ -63,10 +63,6 @@ const height = contentRef.current.offsetHeight; player.resize(width, height); if (mode === MapMode.MOVABLE_MODE) { console.log('aa'); player.showGridLines(); } }; handleResize(); window.addEventListener('resize', handleResize); @@ -118,11 +114,9 @@ return } switchMode(mode); }, [mode]); }, [mode, mapContainer]); const onDrop = (sprite, type, x, y) => { console.log(sprite, type, x, y); const { mapX, mapY } = Tool.getRealPosition(x, y); sprite.x = mapX; sprite.y = mapY;