fix chrome bug kinda
This commit is contained in:
@@ -94,12 +94,14 @@ function GameConstruct(props) {
|
||||
|
||||
return (
|
||||
<div
|
||||
onClick={() => selectSkillTarget(construct.id)}
|
||||
style={ activeSkill ? { cursor: 'pointer' } : {}}
|
||||
className={`game-construct ${ko} ${classes}`} >
|
||||
<h3 className="name"> {construct.name} </h3>
|
||||
{crypSkills}
|
||||
<div className="stats"> {stats} </div>
|
||||
<ConstructAvatar name={construct.name} id={construct.id} />
|
||||
{combatTextEl}
|
||||
<div className="effects"> {effects} </div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -39,7 +39,7 @@ class TargetSvg extends Component {
|
||||
|
||||
const sourceY = height;
|
||||
const sourceX = (source * width / 3) + width / 6;
|
||||
const targetX = (target * width / 3) + width / 6 + (defensive ? width / 24 : 0);
|
||||
const targetX = (target * width / 3) + width / 6 + (defensive ? width / 32 : 0) + (source * width / 24) - (width / 24);
|
||||
const targetY = defensive ? height : 0;
|
||||
const curveEnd = height * 0.25;
|
||||
const curveStart = height * 0.75;
|
||||
|
||||
Reference in New Issue
Block a user