@rpg-engine/long-bow 0.2.94 → 0.2.95

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.
@@ -32649,10 +32649,7 @@ var Container$2 = /*#__PURE__*/styled.div.withConfig({
32649
32649
  var CharacterSelection = function CharacterSelection(_ref) {
32650
32650
  var availableCharacters = _ref.availableCharacters,
32651
32651
  onChange = _ref.onChange;
32652
- var randomSort = function randomSort() {
32653
- return 0.5 - Math.random();
32654
- };
32655
- var propertySelectValues = availableCharacters.sort(randomSort).map(function (item) {
32652
+ var propertySelectValues = availableCharacters.map(function (item) {
32656
32653
  return {
32657
32654
  id: item.textureKey,
32658
32655
  name: item.name
@@ -32667,7 +32664,6 @@ var CharacterSelection = function CharacterSelection(_ref) {
32667
32664
  var onSelectedValueChange = function onSelectedValueChange() {
32668
32665
  var textureKey = selectedValue ? selectedValue.id : '';
32669
32666
  var spriteKey = textureKey ? textureKey + '/down/standing/0.png' : '';
32670
- console.log(selectedValue);
32671
32667
  if (spriteKey === selectedSpriteKey) {
32672
32668
  return;
32673
32669
  }
@@ -32950,10 +32946,10 @@ function useOutsideClick(ref, id) {
32950
32946
  }
32951
32947
  }
32952
32948
  // Bind the event listener
32953
- document.addEventListener('mousedown', handleClickOutside);
32949
+ document.addEventListener('pointerdown', handleClickOutside);
32954
32950
  return function () {
32955
32951
  // Unbind the event listener on clean up
32956
- document.removeEventListener('mousedown', handleClickOutside);
32952
+ document.removeEventListener('pointerdown', handleClickOutside);
32957
32953
  };
32958
32954
  }, [ref]);
32959
32955
  }