Fix drag is_enabled, add to example

This commit is contained in:
Insality
2022-07-17 18:27:38 +03:00
parent d237eaec59
commit 46bcbb596d
3 changed files with 173 additions and 3 deletions

View File

@@ -306,9 +306,8 @@ end
-- @tparam Drag self @{Drag}
-- @treturn bool
function Drag.is_enabled(self)
return self._is_disabled
return not self._is_disabled
end
return Drag