@rbxts/touch-button 1.0.5 → 1.0.6

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.
@@ -133,9 +133,11 @@ do
133
133
  end)
134
134
  end)
135
135
  local editingTrove = Trove.new()
136
+ local lastActive = touchBtn.Active
136
137
  effect(function()
137
138
  local isEditing = TouchButton.configEditingMode()
138
139
  if isEditing then
140
+ lastActive = touchBtn.Active
139
141
  touchBtn.Active = true
140
142
  touchBtn.ImageColor3 = EDITING_MODE_BUTTON_COLOR
141
143
  iconImage.ImageColor3 = EDITING_MODE_BUTTON_COLOR
@@ -207,7 +209,7 @@ do
207
209
  end))
208
210
  else
209
211
  editingTrove:clean()
210
- touchBtn.Active = false
212
+ touchBtn.Active = lastActive
211
213
  touchBtn.ImageColor3 = Color3.fromRGB(255, 255, 255)
212
214
  iconImage.ImageColor3 = Color3.fromRGB(255, 255, 255)
213
215
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/touch-button",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {