If I understand correctly, when an earthquake occurs, energy will be transferred to the water, resulting in water waves. As the waves reach seashore, because the sea depth is getting shallower and wavelength is getting shorter, the height of the wave gets push up, resulting in tsunami. In other words in deep sea, water won't get pushed up as high as the water in shallow seashore.
Is my understanding correct? Is there a quantitative way to express the physics behind all this?