@rpg-engine/long-bow 0.3.32 → 0.3.34

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.32",
3
+ "version": "0.3.34",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -114,6 +114,7 @@ export const Chat: React.FC<IChatProps> = ({
114
114
  autoComplete="off"
115
115
  onFocus={onFocus}
116
116
  onBlur={onBlur}
117
+ onTouchStart={onFocus}
117
118
  />
118
119
  </Column>
119
120
  <Column justifyContent="flex-end">
@@ -82,7 +82,7 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
82
82
  <DraggableContainer
83
83
  type={RPGUIContainerTypes.Framed}
84
84
  width="500px"
85
- cancelDrag=".equipment-container-body .arrow-selector"
85
+ cancelDrag=".equipment-container-body .arrow-selector .rpgui-dropdown-imp"
86
86
  onCloseButton={() => {
87
87
  if (onClose) {
88
88
  onClose();
@@ -125,7 +125,6 @@ export const CraftBook: React.FC<IItemCraftSelectorProps> = ({
125
125
  handleClick(option.key);
126
126
  }}
127
127
  onTouchStart={() => {
128
- handleClick(option.key);
129
128
  setIsShown({ show: true, index: index });
130
129
  }}
131
130
  style={{ display: 'flex', alignItems: 'center' }}
@@ -46,6 +46,7 @@ export const Dropdown: React.FC<IDropdownProps> = ({
46
46
  id={`dropdown-${dropdownId}`}
47
47
  className="rpgui-dropdown-imp rpgui-dropdown-imp-header"
48
48
  onClick={() => setOpened(prev => !prev)}
49
+ onTouchStart={() => setOpened(prev => !prev)}
49
50
  >
50
51
  <label>▼</label> {selectedOption}
51
52
  </DropdownSelect>
@@ -60,6 +61,11 @@ export const Dropdown: React.FC<IDropdownProps> = ({
60
61
  setSelectedOption(option.option);
61
62
  setOpened(false);
62
63
  }}
64
+ onTouchStart={() => {
65
+ setSelectedValue(option.value);
66
+ setSelectedOption(option.option);
67
+ setOpened(false);
68
+ }}
63
69
  >
64
70
  {option.option}
65
71
  </li>
package/src/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file