@quenty/multipleclickutils 13.18.0-canary.ae8d76d.0 → 13.18.0

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [13.18.0-canary.ae8d76d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/multipleclickutils@13.17.3...@quenty/multipleclickutils@13.18.0-canary.ae8d76d.0) (2025-05-10)
6
+ # [13.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/multipleclickutils@13.17.3...@quenty/multipleclickutils@13.18.0) (2025-05-10)
7
7
 
8
8
 
9
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/multipleclickutils",
3
- "version": "13.18.0-canary.ae8d76d.0",
3
+ "version": "13.18.0",
4
4
  "description": "Utility library for detecting multiple clicks or taps. Not good UX, but good for opening up a debug menus",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,13 +26,13 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/loader": "10.8.3",
30
- "@quenty/maid": "3.4.3",
31
- "@quenty/rx": "13.18.0-canary.ae8d76d.0",
32
- "@quenty/signal": "7.10.3"
29
+ "@quenty/loader": "^10.9.0",
30
+ "@quenty/maid": "^3.5.0",
31
+ "@quenty/rx": "^13.18.0",
32
+ "@quenty/signal": "^7.11.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "ae8d76d996594e017ac4bfa19f3c064ebe307cd8"
37
+ "gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
38
38
  }
@@ -8,9 +8,9 @@
8
8
 
9
9
  local require = require(script.Parent.loader).load(script)
10
10
 
11
- local Signal = require("Signal")
12
11
  local Maid = require("Maid")
13
12
  local Observable = require("Observable")
13
+ local Signal = require("Signal")
14
14
 
15
15
  local MultipleClickUtils = {}
16
16
 
@@ -98,7 +98,11 @@ end
98
98
  @param requiredCount number
99
99
  @return Signal<InputObject>
100
100
  ]=]
101
- function MultipleClickUtils.getMultipleClickSignal(maid, gui: GuiObject, requiredCount: number): Signal.Signal<InputObject>
101
+ function MultipleClickUtils.getMultipleClickSignal(
102
+ maid,
103
+ gui: GuiObject,
104
+ requiredCount: number
105
+ ): Signal.Signal<InputObject>
102
106
  assert(Maid.isMaid(maid), "Bad maid")
103
107
  assert(typeof(gui) == "Instance", "Bad gui")
104
108
  assert(type(requiredCount) == "number", "Bad requiredCount")
@@ -114,9 +118,11 @@ function MultipleClickUtils.getMultipleClickSignal(maid, gui: GuiObject, require
114
118
  return
115
119
  end
116
120
 
117
- if lastInputObject
121
+ if
122
+ lastInputObject
118
123
  and inputObject.UserInputType == lastInputObject.UserInputType
119
- and (os.clock() - lastInputTime) <= TIME_TO_CLICK_AGAIN then
124
+ and (os.clock() - lastInputTime) <= TIME_TO_CLICK_AGAIN
125
+ then
120
126
  inputCount = inputCount + 1
121
127
 
122
128
  if inputCount >= requiredCount then
@@ -135,4 +141,4 @@ function MultipleClickUtils.getMultipleClickSignal(maid, gui: GuiObject, require
135
141
  return signal
136
142
  end
137
143
 
138
- return MultipleClickUtils
144
+ return MultipleClickUtils