mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Only set transform is needed
Probably browsers dont do anything if the value doesn't change anyway, but I'd rather not rely on that
This commit is contained in:
parent
d9a343dad6
commit
1001f254a3
1 changed files with 3 additions and 1 deletions
|
|
@ -141,7 +141,9 @@ def paged_scroll_into_view(self, elem):
|
|||
self._scroll_implementation(max(0, left))
|
||||
|
||||
def paged___reset_transforms(self):
|
||||
document.documentElement.style.transform = 'none'
|
||||
s = document.documentElement.style
|
||||
if s.transform is not 'none':
|
||||
s.transform = 'none'
|
||||
|
||||
def paged_reset_globals(self):
|
||||
self.__reset_transforms()
|
||||
|
|
|
|||
Loading…
Reference in a new issue