mirror of https://github.com/perkeep/perkeep.git
Merge "Fix the weird flicker on mouseover of thumbnails."
This commit is contained in:
commit
ebcfb0270e
|
@ -141,6 +141,9 @@ limitations under the License.
|
||||||
top: 5px;
|
top: 5px;
|
||||||
transition: opacity 0.2s ease;
|
transition: opacity 0.2s ease;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
|
|
||||||
|
/* To force us into a graphics layer, otherwise we get weird effects as we transition in and out of one during animation. See: https://code.google.com/p/camlistore/issues/detail?id=284. */
|
||||||
|
-webkit-transform: scale3d(1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cam-blobitem.goog-control-disabled .checkmark {
|
.cam-blobitem.goog-control-disabled .checkmark {
|
||||||
|
|
|
@ -97,8 +97,9 @@ cam.IndexPage.prototype.setTransform_ = function() {
|
||||||
var originY = currentHeight * currentScroll / potentialScroll;
|
var originY = currentHeight * currentScroll / potentialScroll;
|
||||||
|
|
||||||
goog.style.setStyle(this.blobItemContainer_.getElement(),
|
goog.style.setStyle(this.blobItemContainer_.getElement(),
|
||||||
{'transform': goog.string.subs('scale(%s)', scale),
|
// The 3d transform is important. See: https://code.google.com/p/camlistore/issues/detail?id=284.
|
||||||
'transform-origin': goog.string.subs('right %spx', originY)});
|
{'transform': goog.string.subs('scale3d(%s, %s, 1)', scale, scale),
|
||||||
|
'transform-origin': goog.string.subs('right %spx 0', originY)});
|
||||||
};
|
};
|
||||||
|
|
||||||
cam.IndexPage.prototype.onNavClose = function() {
|
cam.IndexPage.prototype.onNavClose = function() {
|
||||||
|
|
Loading…
Reference in New Issue