mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -141,7 +141,9 @@ class IOSScrollViewport(ScrollViewport):
|
||||
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…
x
Reference in New Issue
Block a user