@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.
@@ -32643,10 +32643,7 @@ var Container$2 = /*#__PURE__*/styled.div.withConfig({
32643
32643
  var CharacterSelection = function CharacterSelection(_ref) {
32644
32644
  var availableCharacters = _ref.availableCharacters,
32645
32645
  onChange = _ref.onChange;
32646
- var randomSort = function randomSort() {
32647
- return 0.5 - Math.random();
32648
- };
32649
- var propertySelectValues = availableCharacters.sort(randomSort).map(function (item) {
32646
+ var propertySelectValues = availableCharacters.map(function (item) {
32650
32647
  return {
32651
32648
  id: item.textureKey,
32652
32649
  name: item.name
@@ -32661,7 +32658,6 @@ var CharacterSelection = function CharacterSelection(_ref) {
32661
32658
  var onSelectedValueChange = function onSelectedValueChange() {
32662
32659
  var textureKey = selectedValue ? selectedValue.id : '';
32663
32660
  var spriteKey = textureKey ? textureKey + '/down/standing/0.png' : '';
32664
- console.log(selectedValue);
32665
32661
  if (spriteKey === selectedSpriteKey) {
32666
32662
  return;
32667
32663
  }
@@ -32945,10 +32941,10 @@ function useOutsideClick(ref, id) {
32945
32941
  }
32946
32942
  }
32947
32943
  // Bind the event listener
32948
- document.addEventListener('mousedown', handleClickOutside);
32944
+ document.addEventListener('pointerdown', handleClickOutside);
32949
32945
  return function () {
32950
32946
  // Unbind the event listener on clean up
32951
- document.removeEventListener('mousedown', handleClickOutside);
32947
+ document.removeEventListener('pointerdown', handleClickOutside);
32952
32948
  };
32953
32949
  }, [ref]);
32954
32950
  }