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

druid:on_input returns nil with scroll #72

Closed
BlackMATov opened this issue Jun 9, 2020 · 3 comments
Closed

druid:on_input returns nil with scroll #72

BlackMATov opened this issue Jun 9, 2020 · 3 comments
Assignees

Comments

@BlackMATov
Copy link

-- drag.lua
function M.on_input(self, action_id, action)
    if action_id ~= const.ACTION_TOUCH and action_id ~= const.ACTION_MULTITOUCH then
        return
    end

should be return false?

@Insality
Copy link
Owner

Thank you! Is it problem? I'll fix, but behaviour with nil and false should be equal

@Insality Insality self-assigned this Jun 10, 2020
@BlackMATov
Copy link
Author

Is it problem?

Unfortunately yes:

ERROR:GUI: The function on_input must either return true/false, or no value at all.

Insality added a commit that referenced this issue Jun 14, 2020
@Insality
Copy link
Owner

Fixed in 0.4.3, thanks!
Fixed in several places

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