vbox selecting

This commit is contained in:
Mashy 2019-11-20 13:55:54 +10:00
parent af99883ced
commit b570bfaad0

View File

@ -123,8 +123,7 @@ class Vbox extends preact.Component {
if (!player) return false;
const { vbox } = player;
const { shopSelect, stashSelect } = vboxSelected;
console.log(vboxSelected);
const vboxSelecting = shopSelect.length;
const vboxSelecting = shopSelect.length === 1 && stashSelect.length === 0;
function combinerChange(newStashSelect) {
return setVboxSelected({ shopSelect, stashSelect: newStashSelect });
@ -387,7 +386,6 @@ class Vbox extends preact.Component {
<div
onMouseDown={inventoryClick}
onClick={e => e.stopPropagation()}
style={vboxSelecting || (itemUnequip.length) ? { cursor: 'pointer' } : null}
onDragOver={ev => ev.preventDefault()}
onDrop={inventoryClick}
>