Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Неправильное срабатывание звука в кнопке мобильной версии #286

Open
ufgo opened this issue Oct 31, 2024 · 0 comments
Assignees

Comments

@ufgo
Copy link

ufgo commented Oct 31, 2024

Я использовал HTML5 билд и Андроид.
Если у кнопки в стилях прописан звук, вот так:

	on_click = function(self, node)
		local scale_to = self.start_scale + M.button.SCALE_CHANGE
		button_tap_anim(node, scale_to, self.start_scale)
		sound.play("main:/sounds#enable_btn")
	end,

	on_click_disabled = function(self, node)
		sound.play("main:/sounds#disable_btn")
	end,

И при срабатывании touch на кнопке, она отключается через set_enabled(false), то срабатывает два звука.

@Insality Insality self-assigned this Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants