fix chrome bug kinda

This commit is contained in:
ntr
2019-06-03 19:35:46 +10:00
parent b298feff9c
commit faff221ca6
3 changed files with 9 additions and 21 deletions
+2
View File
@@ -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>
);
+1 -1
View File
@@ -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;