@rpg-engine/long-bow 0.3.93 → 0.3.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.3.93",
3
+ "version": "0.3.94",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -7,7 +7,7 @@ import { uiFonts } from '../../constants/uiFonts';
7
7
  interface Props extends IRawSpell {
8
8
  charMana: number;
9
9
  charMagicLevel: number;
10
- onPointerDown?: (spellKey: string) => void;
10
+ onPointerUp?: (spellKey: string) => void;
11
11
  isSettingShortcut?: boolean;
12
12
  spellKey: string;
13
13
  }
@@ -20,7 +20,7 @@ export const Spell: React.FC<Props> = ({
20
20
  manaCost,
21
21
  charMana,
22
22
  charMagicLevel,
23
- onPointerDown,
23
+ onPointerUp,
24
24
  isSettingShortcut,
25
25
  minMagicLevelRequired,
26
26
  }) => {
@@ -31,7 +31,7 @@ export const Spell: React.FC<Props> = ({
31
31
  return (
32
32
  <Container
33
33
  disabled={disabled}
34
- onPointerDown={onPointerDown?.bind(null, spellKey)}
34
+ onPointerUp={onPointerUp?.bind(null, spellKey)}
35
35
  isSettingShortcut={isSettingShortcut && !disabled}
36
36
  className="spell"
37
37
  >
@@ -113,7 +113,7 @@ export const Spellbook: React.FC<ISpellbookProps> = ({
113
113
  <Spell
114
114
  charMana={mana}
115
115
  charMagicLevel={magicLevel}
116
- onPointerDown={
116
+ onPointerUp={
117
117
  settingShortcutIndex !== -1 ? setShortcut : onSpellClick
118
118
  }
119
119
  spellKey={spell.key}