Open ilyassa opened 9 years ago
me too! var matrixValue = parseFloat(matrix[index]); return matrixValue < 0 ? Math.floor(matrix[index]) : parseInt(matrix[index], 10); u something better!
in next link the toogle button works fine...
/* Get reference to toggle button, the html element with ID "open-left" */
var myToggleButton = document.getElementById('open-left')
/* Add event listener to our toggle button */
myToggleButton.addEventListener('click', function() {
if (snapper.state().state == "left") {
snapper.close();
} else {
snapper.open('left');
}
});
Chrome version 41.0.2272.118 m
window.getComputedStyle returns rational numbers (not rounding numbers). For this reason toggle button doesn't close a menu from the left side. I didn't check the right side menu.
When we call the public methd state, fromLeft property gets incorrect result from the action.translate.get.matrix(4)
Temporary workaround: