Fix problem where part of wrong photo shows

Fix a problem when swiping through a few image attachments
where, when reaching the end, part of the N-1 photo is shown while
the blue glow is being shown on the right side

Bug: 7745114

Cherry-pick of

Change-Id: Ic7d8b4213303a7e06c902b117e1e68b40bd8e1c3
2 files changed
tree: 171f01b99e68a8b848c19fdb5e3d916a3bb2155d
  2. carousel/
  3. chips/
  4. common/
  5. photoviewer/
  6. variablespeed/
  7. widget/